forked from bblanchon/ArduinoJson
Fixed template instantiation warning (issue #35)
This commit is contained in:
@ -2,7 +2,7 @@ file(GLOB_RECURSE INC_FILES ../include/*.hpp)
|
|||||||
file(GLOB_RECURSE SRC_FILES *.cpp)
|
file(GLOB_RECURSE SRC_FILES *.cpp)
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
|
||||||
add_definitions(
|
add_compile_options(
|
||||||
-fno-exceptions
|
-fno-exceptions
|
||||||
-pedantic
|
-pedantic
|
||||||
-Wall
|
-Wall
|
||||||
@ -31,12 +31,17 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU)")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU)")
|
||||||
add_definitions(
|
add_compile_options(
|
||||||
-Wlogical-op
|
-Wlogical-op
|
||||||
-Wnoexcept
|
-Wnoexcept
|
||||||
-Wstrict-null-sentinel
|
-Wstrict-null-sentinel
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
|
add_compile_options(
|
||||||
|
-Wc++11-compat
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_library(ArduinoJson ${SRC_FILES} ${INC_FILES})
|
add_library(ArduinoJson ${SRC_FILES} ${INC_FILES})
|
@ -31,5 +31,5 @@ void List<T>::removeNode(node_type *nodeToRemove) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template class List<JsonPair>;
|
template class ArduinoJson::Internals::List<JsonPair>;
|
||||||
template class List<JsonVariant>;
|
template class ArduinoJson::Internals::List<JsonVariant>;
|
||||||
|
Reference in New Issue
Block a user