Revision: 46366
          http://brlcad.svn.sourceforge.net/brlcad/?rev=46366&view=rev
Author:   starseeker
Date:     2011-08-24 01:46:35 +0000 (Wed, 24 Aug 2011)
Log Message:
-----------
Check if we have the no-unused flag

Modified Paths:
--------------
    brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake

Modified: brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake
===================================================================
--- brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake  2011-08-24 01:39:42 UTC 
(rev 46365)
+++ brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake  2011-08-24 01:46:35 UTC 
(rev 46366)
@@ -44,6 +44,11 @@
 ENDIF(BRLCAD-ENABLE_COMPILER_WARNINGS OR BRLCAD-ENABLE_STRICT)
 MARK_AS_ADVANCED(WARNING_FLAGS)
 
+# There are some specific situations, such as auto-generated sources,
+# where we have no real control over the code generating the warnings
+# and need to disable them individually.  Test for those flags.
+CHECK_C_FLAG(Wno-unused)
+
 IF(BRLCAD-ENABLE_STRICT)
        CHECK_C_FLAG_GATHER(Werror STRICT_FLAGS)
        ADD_NEW_FLAG(C STRICT_FLAGS)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to