Suppress GCC deprecated-declarations warning for tests

This commit is contained in:
Christopher Dunn 2017-08-28 08:38:29 -05:00
parent 4cfae897c0
commit 90591c70cd
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,9 @@
// recognized in your jurisdiction.
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
/* This executable is used for testing parser/writer using real JSON files.
*/
@ -324,3 +327,5 @@ int main(int argc, const char* argv[]) {
return 1;
}
}
#pragma GCC diagnostic pop

View File

@ -3,6 +3,9 @@
// recognized in your jurisdiction.
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "jsontest.h"
#include <json/config.h>
#include <json/json.h>
@ -2587,3 +2590,5 @@ int main(int argc, const char* argv[]) {
return runner.runCommandLine(argc, argv);
}
#pragma GCC diagnostic pop