[PATCH] D61046: Fix compilation warnings when compiling with GCC 7.3

Nikita Popov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 24 00:30:52 PDT 2019


nikic added inline comments.


================
Comment at: llvm/trunk/unittests/IR/ConstantRangeTest.cpp:398-401
+#if defined(__GNUC__) && __GNUC__ >= 7
+        // Silence warning: variable 'HaveInterrupt3' set but not used
+        (void)&HaveInterrupt3;
+#endif
----------------
tstellar wrote:
> Same here, no compiler specific ifdefs.
Just doing an unconditional `(void)HaveInterrupt3;` should be fine here. This warning is likely not specific to GCC 7 anyway.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61046/new/

https://reviews.llvm.org/D61046





More information about the cfe-commits mailing list