Skip to content

Commit f1cafb6

Browse files
ya1gauravcdunn2001
authored andcommitted
GCC warning removal for long long
(was #300) I got below warning message on x86 linux machine : ``` "jsoncpp-0.10.2-p1/include/json/config.h:100: warning: ISO C++ 1998 does not support ‘long long’" gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ``` In reference to * #292 **long long** is supported in c++-11; for old compilers i.e `0.y.z` branch this patch should be merged.
1 parent a13303e commit f1cafb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
9999
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
100100
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
101101
# using GCC
102-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
102+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Wno-long-long")
103103
endif()
104104

105105
IF(JSONCPP_WITH_WARNING_AS_ERROR)

0 commit comments

Comments
 (0)