File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 33// recognized in your jurisdiction.
44// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
55
6+ #if defined(__GNUC__)
67#pragma GCC diagnostic push
78#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
9+ #elif defined(_MSC_VER)
10+ #pragma warning(disable : 4996)
11+ #endif
812
913/* This executable is used for testing parser/writer using real JSON files.
1014 */
1418#include < sstream>
1519#include < stdio.h>
1620
17- #if defined(_MSC_VER) && _MSC_VER >= 1310
18- #pragma warning(disable : 4996) // disable fopen deprecation warning
19- #endif
20-
2121struct Options
2222{
2323 JSONCPP_STRING path;
@@ -328,4 +328,6 @@ int main(int argc, const char* argv[]) {
328328 }
329329}
330330
331+ #if defined(__GNUC__)
331332#pragma GCC diagnostic pop
333+ #endif
Original file line number Diff line number Diff line change 33// recognized in your jurisdiction.
44// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
55
6+ #if defined(__GNUC__)
67#pragma GCC diagnostic push
78#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
9+ #elif defined(_MSC_VER)
10+ #pragma warning(disable : 4996)
11+ #endif
812
913#include " jsontest.h"
1014#include < json/config.h>
@@ -2591,4 +2595,6 @@ int main(int argc, const char* argv[]) {
25912595 return runner.runCommandLine (argc, argv);
25922596}
25932597
2598+ #if defined(__GNUC__)
25942599#pragma GCC diagnostic pop
2600+ #endif
You can’t perform that action at this time.
0 commit comments