[Cmake-commits] [cmake-commits] king committed cmIfCommand.cxx 1.102 1.103

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Oct 28 08:45:49 EDT 2009


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

Modified Files:
	cmIfCommand.cxx 
Log Message:
Remove unreachable code in cmIfCommand

The commit "Fix if() command and CMP0012 OLD/NEW behavior" introduced an
unreachable 'break' after 'return' in a switch statement.  We remove it.


Index: cmIfCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmIfCommand.cxx,v
retrieving revision 1.102
retrieving revision 1.103
diff -C 2 -d -r1.102 -r1.103
*** cmIfCommand.cxx	27 Oct 2009 13:07:32 -0000	1.102
--- cmIfCommand.cxx	28 Oct 2009 12:45:46 -0000	1.103
***************
*** 316,320 ****
        case cmPolicies::OLD:
          return oldResult;
-         break;
        case cmPolicies::REQUIRED_IF_USED:
        case cmPolicies::REQUIRED_ALWAYS:
--- 316,319 ----



More information about the Cmake-commits mailing list