mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-13 18:27:10 +01:00
Suppress GCC deprecated-declarations warning for tests
This commit is contained in:
parent
4cfae897c0
commit
90591c70cd
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user