Package: libjsoncpp-dev
Version: 1.7.2-1
Severity: minor

Dear Maintainer,

When compiling against libjsoncpp, I get a huge number of warnings
such as the following:

/usr/include/jsoncpp/json/value.h:56:22: warning: override controls 
(override/final) only available with -std=c++11 or -std=gnu++11
   ~Exception() throw() JSONCPP_OVERRIDE;

This results from the fact that my software is compiled with all
warnings enabled and using the 1998 ISO C++ standard (not 2011
ISO C++). I would suggest patching the definition of the macro 
JSONCPP_OVERRIDE in the file "/usr/include/jsoncpp/json/config.h"
as follows:

#if defined(_MSC_VER) && _MSC_VER <= 1600 // MSVC <= 2010
# define JSONCPP_OVERRIDE
#elif (__cplusplus < 201103L)  // 1998 ISO C++
# define JSONCPP_OVERRIDE
#else  // 2011 ISO C++ or above
# define JSONCPP_OVERRIDE override
#endif

HTH,
Sebastien-



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libjsoncpp-dev depends on:
ii  libjsoncpp1  1.7.2-1

libjsoncpp-dev recommends no packages.

libjsoncpp-dev suggests no packages.

-- no debconf information

Reply via email to