8000 Mute compiler warning (issue #47) · littlestrange/ArduinoJson@dadd898 · GitHub
[go: up one dir, main page]

Skip to content

Commit dadd898

Browse files
committed
Mute compiler warning (issue bblanchon#47)
1 parent e2016cf commit dadd898

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

include/ArduinoJson/JsonBuffer.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
#include <stddef.h> // for size_t
1010
#include <stdint.h> // for uint8_t
1111

12+
#if defined(__clang__)
13+
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
14+
#elif defined(__GNUC__)
15+
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
16+
#endif
17+
1218
namespace ArduinoJson {
1319
class JsonArray;
1420
class JsonObject;

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
2020
-Wno-sign-conversion
2121
-Wno-unused
2222
-Wno-variadic-macros
23+
-Wnon-virtual-dtor
2324
-Wold-style-cast
2425
-Woverloaded-virtual
2526
-Wredundant-decls

0 commit comments

Comments
 (0)
0