[dragonegg] r182635 - If the gcc version is 4.7 or less and IDENT_ASM_OP is undefined then
Duncan Sands
baldrick at free.fr
Fri May 24 02:01:41 PDT 2013
Author: baldrick
Date: Fri May 24 04:01:40 2013
New Revision: 182635
URL: http://llvm.org/viewvc/llvm-project?rev=182635&view=rev
Log:
If the gcc version is 4.7 or less and IDENT_ASM_OP is undefined then
output_ident is unused, resulting in a compiler warning. Suppress the
warning (simpler than suppressing the function: gcc-4.8 poisons IDENT_ASM_OP
which complicates things).
Modified:
dragonegg/trunk/src/Backend.cpp
Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=182635&r1=182634&r2=182635&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Fri May 24 04:01:40 2013
@@ -562,6 +562,8 @@ static void CreateModule(const std::stri
IdentString += version_string;
output_ident(IdentString.c_str());
}
+#else
+ (void)output_ident; // Avoid compiler warning about output_ident being unused.
#endif
#endif
More information about the llvm-commits
mailing list