summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorMichael Scott <michael.scott250@gmail.com>2015-12-06 12:58:24 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-10 14:28:31 (GMT)
commit291275347be3f9c02aff6fb4dfa45a3e5b2f5b4a (patch)
treed407b07a0d2f1a28ce54c581d12d8067453f0ecc /Source/cmake.h
parent67211011d946684bed73bcd5b976ec90f4c30856 (diff)
downloadCMake-291275347be3f9c02aff6fb4dfa45a3e5b2f5b4a.zip
CMake-291275347be3f9c02aff6fb4dfa45a3e5b2f5b4a.tar.gz
CMake-291275347be3f9c02aff6fb4dfa45a3e5b2f5b4a.tar.bz2
cmake: Deduplicate warning message control code
Remove the duplicate code in cmake::Configure to set the cache variables for the warning message suppression. Replace it with calls to the dedicated methods to carry this out.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 1d63e66..298d82b 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -309,26 +309,26 @@ class cmake
{ return this->CMakeEditCommand; }
/*
- * Set the state of the suppression of developer (author) warnings.
- */
- void SetSuppressDevWarnings(bool v);
- /*
* Get the state of the suppression of developer (author) warnings.
* Returns false, by default, if developer warnings should be shown, true
* otherwise.
*/
bool GetSuppressDevWarnings(cmMakefile const* mf = NULL);
-
/*
- * Set the state of the suppression of deprecated warnings.
+ * Set the state of the suppression of developer (author) warnings.
*/
- void SetSuppressDeprecatedWarnings(bool v);
+ void SetSuppressDevWarnings(bool v);
+
/*
* Get the state of the suppression of deprecated warnings.
* Returns false, by default, if deprecated warnings should be shown, true
* otherwise.
*/
bool GetSuppressDeprecatedWarnings(cmMakefile const* mf = NULL);
+ /*
+ * Set the state of the suppression of deprecated warnings.
+ */
+ void SetSuppressDeprecatedWarnings(bool v);
/** Display a message to the user. */
void IssueMessage(cmake::MessageType t, std::string const& text,