[llvm] 6bbbd30 - [llvm-objdump] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 15 11:56:27 PDT 2024
Author: Kazu Hirata
Date: 2024-08-15T11:56:21-07:00
New Revision: 6bbbd301473a14a52d7ea1c5dae38ee20f97f1f2
URL: https://github.com/llvm/llvm-project/commit/6bbbd301473a14a52d7ea1c5dae38ee20f97f1f2
DIFF: https://github.com/llvm/llvm-project/commit/6bbbd301473a14a52d7ea1c5dae38ee20f97f1f2.diff
LOG: [llvm-objdump] Fix a warning
This patch fixes:
llvm/tools/llvm-objdump/XCOFFDump.cpp:85:12: error: unused variable
'BytesFormatted' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/tools/llvm-objdump/XCOFFDump.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-objdump/XCOFFDump.cpp b/llvm/tools/llvm-objdump/XCOFFDump.cpp
index 5617313cdbf72..524bf07c372a9 100644
--- a/llvm/tools/llvm-objdump/XCOFFDump.cpp
+++ b/llvm/tools/llvm-objdump/XCOFFDump.cpp
@@ -86,6 +86,7 @@ void XCOFFDumper::printFileHeader() {
"%F %T", std::gmtime(&TimeDate));
assert(BytesFormatted && "The size of the buffer FormattedTime is less "
"than the size of the date/time string.");
+ (void)BytesFormatted;
printStrHex("Timestamp:", FormattedTime, Timestamp);
} else {
// Negative timestamp values are reserved for future use.
More information about the llvm-commits
mailing list