Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "Try to activate -Wsugests-override in GNU compiler, as it may help if it...
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Fri, 7 May 2021 22:16:11 +0000 (00:16 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Fri, 7 May 2021 22:16:15 +0000 (00:16 +0200)
This fails for old versions of GCC, which could be worked around, but
also on ns-3 headers, which is harder to fix properly.

This reverts commit 694a2b171a6e03d42d5068bc6ba6c353cb0e34e3.

tools/cmake/Flags.cmake

index d101b92..0a195ec 100644 (file)
@@ -19,7 +19,7 @@ if(enable_compile_warnings)
     set(warnCFLAGS "${warnCFLAGS} -Wformat-signedness")
   endif()
   if(CMAKE_COMPILER_IS_GNUCC)
-    set(warnCFLAGS "${warnCFLAGS} -Wsuggest-override -Wclobbered -Wno-error=clobbered  -Wno-unused-local-typedefs -Wno-error=attributes -Wno-error=maybe-uninitialized")
+    set(warnCFLAGS "${warnCFLAGS} -Wclobbered -Wno-error=clobbered  -Wno-unused-local-typedefs -Wno-error=attributes -Wno-error=maybe-uninitialized")
   endif()
   if (CMAKE_CXX_COMPILER_ID MATCHES "Intel")
     # ignore remarks: