File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 3
3
// recognized in your jurisdiction.
4
4
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5
5
6
+ #if defined(__GNUC__)
6
7
#pragma GCC diagnostic push
7
8
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
9
+ #elif defined(_MSC_VER)
10
+ #pragma warning(disable : 4996)
11
+ #endif
8
12
9
13
/* This executable is used for testing parser/writer using real JSON files.
10
14
*/
14
18
#include < sstream>
15
19
#include < stdio.h>
16
20
17
- #if defined(_MSC_VER) && _MSC_VER >= 1310
18
- #pragma warning(disable : 4996) // disable fopen deprecation warning
19
- #endif
20
-
21
21
struct Options
22
22
{
23
23
JSONCPP_STRING path;
@@ -328,4 +328,6 @@ int main(int argc, const char* argv[]) {
328
328
}
329
329
}
330
330
331
+ #if defined(__GNUC__)
331
332
#pragma GCC diagnostic pop
333
+ #endif
Original file line number Diff line number Diff line change 3
3
// recognized in your jurisdiction.
4
4
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5
5
6
+ #if defined(__GNUC__)
6
7
#pragma GCC diagnostic push
7
8
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
9
+ #elif defined(_MSC_VER)
10
+ #pragma warning(disable : 4996)
11
+ #endif
8
12
9
13
#include " jsontest.h"
10
14
#include < json/config.h>
@@ -2591,4 +2595,6 @@ int main(int argc, const char* argv[]) {
2591
2595
return runner.runCommandLine (argc, argv);
2592
2596
}
2593
2597
2598
+ #if defined(__GNUC__)
2594
2599
#pragma GCC diagnostic pop
2600
+ #endif
You can’t perform that action at this time.
0 commit comments