Skip to content

Commit 6bbbd30

Browse files
[llvm-objdump] Fix a warning
This patch fixes: llvm/tools/llvm-objdump/XCOFFDump.cpp:85:12: error: unused variable 'BytesFormatted' [-Werror,-Wunused-variable]
1 parent 8ffdc87 commit 6bbbd30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/tools/llvm-objdump/XCOFFDump.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ void XCOFFDumper::printFileHeader() {
8686
"%F %T", std::gmtime(&TimeDate));
8787
assert(BytesFormatted && "The size of the buffer FormattedTime is less "
8888
"than the size of the date/time string.");
89+
(void)BytesFormatted;
8990
printStrHex("Timestamp:", FormattedTime, Timestamp);
9091
} else {
9192
// Negative timestamp values are reserved for future use.

0 commit comments

Comments
 (0)