diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2013-01-14 10:23:56 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2013-01-14 10:23:56 -0500 |
commit | cbbc4c7f6b4cb718cc3907b955f7ae527d2d0274 (patch) | |
tree | 5332a32c8bca3c15531ec6dff964a2eac55bf25a /src/proto | |
parent | 5b909024373cd7af52ab13ade9e0790b331d7664 (diff) | |
download | gem5-cbbc4c7f6b4cb718cc3907b955f7ae527d2d0274.tar.xz |
scons: Address clang 3.2 compilation error
This patch fixes a compilation error encountered using clang 3.2 on OSX.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/protoio.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/protoio.cc b/src/proto/protoio.cc index ae1e2d8c2..76364794f 100644 --- a/src/proto/protoio.cc +++ b/src/proto/protoio.cc @@ -91,7 +91,7 @@ ProtoOutputStream::write(const Message& msg) } ProtoInputStream::ProtoInputStream(const string& filename) : - fileStream(filename, ios::in | ios::binary), fileName(filename), + fileStream(filename.c_str(), ios::in | ios::binary), fileName(filename), useGzip(false), zeroCopyStream(NULL), gzipStream(NULL), codedStream(NULL) { |