diff options
author | Steven Johnson <srj@google.com> | 2020-06-15 12:26:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 12:26:36 -0700 |
commit | 3239018f403d8fe0f20a914032c7fb1bf8c1c358 (patch) | |
tree | 5d15556d0b4d1eabf3e3a2be30f72140d55c29a6 /src | |
parent | 2dca7fc627397636116ad74a31d7aac980095390 (diff) | |
download | wabt-3239018f403d8fe0f20a914032c7fb1bf8c1c358.tar.gz wabt-3239018f403d8fe0f20a914032c7fb1bf8c1c358.tar.bz2 wabt-3239018f403d8fe0f20a914032c7fb1bf8c1c358.zip |
Fix two minor compiler warnings (#1462)
- writing a uintptr_t should use PRIuPTR, not PRIu64
- add explicit `override` to ~FileStream
Diffstat (limited to 'src')
-rw-r--r-- | src/binary-writer-spec.cc | 2 | ||||
-rw-r--r-- | src/stream.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/binary-writer-spec.cc b/src/binary-writer-spec.cc index 4499e0ff..13e71122 100644 --- a/src/binary-writer-spec.cc +++ b/src/binary-writer-spec.cc @@ -199,7 +199,7 @@ void BinaryWriterSpec::WriteRefBits(uintptr_t ref_bits) { if (ref_bits == Const::kRefNullBits) { json_stream_->Writef("\"null\""); } else { - json_stream_->Writef("\"%" PRIu64 "\"", ref_bits); + json_stream_->Writef("\"%" PRIuPTR "\"", ref_bits); } } diff --git a/src/stream.h b/src/stream.h index 94cfc5b1..485c4561 100644 --- a/src/stream.h +++ b/src/stream.h @@ -193,7 +193,7 @@ class FileStream : public Stream { explicit FileStream(FILE*, Stream* log_stream = nullptr); FileStream(FileStream&&); FileStream& operator=(FileStream&&); - ~FileStream(); + ~FileStream() override; static std::unique_ptr<FileStream> CreateStdout(); static std::unique_ptr<FileStream> CreateStderr(); |