projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b90902
)
scons: Address clang 3.2 compilation error
author
Andreas Hansson
<andreas.hansson@arm.com>
Mon, 14 Jan 2013 15:23:56 +0000
(10:23 -0500)
committer
Andreas Hansson
<andreas.hansson@arm.com>
Mon, 14 Jan 2013 15:23:56 +0000
(10:23 -0500)
This patch fixes a compilation error encountered using clang 3.2 on OSX.
src/proto/protoio.cc
patch
|
blob
|
history
diff --git
a/src/proto/protoio.cc
b/src/proto/protoio.cc
index ae1e2d8c23d6de52cf0c446bc127e005e179f73e..76364794f28d452715e765aad33a2c77d20d2304 100644
(file)
--- 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)
{