diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx index 55fbfd178..fc18db38b 100644 --- a/Source/cmTryRunCommand.cxx +++ b/Source/cmTryRunCommand.cxx @@ -29,7 +29,7 @@ bool cmTryRunCommand::InitialPass(std::vector const& argv) // build an arg list for TryCompile and extract the runArgs std::vector tryCompile; std::string runArgs; - int i; + unsigned int i; for (i = 1; i < argv.size(); ++i) { if (argv[i] == "ARGS") diff --git a/Source/cmTryRunCommand.h b/Source/cmTryRunCommand.h index 985ccd0eb..4e45b94ce 100644 --- a/Source/cmTryRunCommand.h +++ b/Source/cmTryRunCommand.h @@ -63,8 +63,8 @@ public: { return "TRY_RUN(RUN_RESULT_VAR COMPILE_RESULT_VAR bindir srcfile > > ...>)\n" - "Try compiling a srcfile. Return the success or failure in "; - "COMPILE_RESULT_VAR. Then if the compile succeeded, run the "; + "Try compiling a srcfile. Return the success or failure in " + "COMPILE_RESULT_VAR. Then if the compile succeeded, run the " "executable and return the result in RUN_RESULT_VAR. "; }