• Philipp A. Hartmann's avatar
    Add RAPIDJSON_DIAG_* macros to handle compiler warnings · 813da24d
    Philipp A. Hartmann authored
    Warning push/pop support has been added to GCC in version 4.6.0,
    and pragmas to ignore certain warnings are present since 4.2.0.
    This patch hides the compiler-specific warning push/pop/disable
    pragmas behind a macro-based implementation (currently for MSVC and
    clang /GCC.
    
    This avoids warnings, as seen e.g. on GCC 4.4:
      ../../include/rapidjson/document.h:14: error: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
    and earlier versions complaining about unknown pragmas being ignored.
    
    Note: unittest.h and perftest.h need to check for compilers
    explicitly, as rapidjson.h is not included there.
    813da24d
Name
Last commit
Last update
bin Loading commit data...
build Loading commit data...
doc Loading commit data...
example Loading commit data...
include/rapidjson Loading commit data...
test Loading commit data...
thirdparty Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
license.txt Loading commit data...
readme.md Loading commit data...