[Cmake-commits] [cmake-commits] king committed cmake.cxx 1.373 1.374

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Mar 13 15:06:38 EDT 2008


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv24999/Source

Modified Files:
	cmake.cxx 
Log Message:
ENH: Make (dev) warnings show note about -Wno-dev option.  Fix -Wdev and -Wno-dev options to not be mistaken for the source directory specification.


Index: cmake.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmake.cxx,v
retrieving revision 1.373
retrieving revision 1.374
diff -C 2 -d -r1.373 -r1.374
*** cmake.cxx	13 Mar 2008 17:48:57 -0000	1.373
--- cmake.cxx	13 Mar 2008 19:06:35 -0000	1.374
***************
*** 587,590 ****
--- 587,600 ----
        i++;
        }
+     else if(arg.find("-Wno-dev",0) == 0)
+       {
+       // skip for now
+       i++;
+       }
+     else if(arg.find("-Wdev",0) == 0)
+       {
+       // skip for now
+       i++;
+       }
      else if(arg.find("--graphviz=",0) == 0)
        {
***************
*** 4173,4176 ****
--- 4183,4192 ----
      }
  
+   // Add a note about warning suppression.
+   if(t == cmake::AUTHOR_WARNING)
+     {
+     msg << "This warning may be suppressed using the -Wno-dev option.";
+     }
+ 
    // Add a terminating blank line.
    msg << "\n";



More information about the Cmake-commits mailing list