Skip to content

Commit a90d1a4

Browse files
updated to cxxopts v3.0.0
1 parent 349c1f5 commit a90d1a4

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "libs/cxxopts"]
22
path = libs/cxxopts
3-
url = https://github.com/NikolasK-source/cxxopts.git
3+
url = https://github.com/NikolasK-source/cxxopts.git
44
[submodule "libs/libmodbus"]
55
path = libs/libmodbus
66
url = https://github.com/stephane/libmodbus

src/main.cpp

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,29 @@
44
*/
55

66
#include <csignal>
7-
#include <cxxopts.hpp>
87
#include <filesystem>
98
#include <iostream>
109
#include <memory>
1110
#include <sysexits.h>
1211
#include <unistd.h>
1312

13+
// cxxopts, but all warnings disabled
14+
#ifdef COMPILER_CLANG
15+
# pragma clang diagnostic push
16+
# pragma clang diagnostic ignored "-Weverything"
17+
#elif defined(COMPILER_GCC)
18+
# pragma GCC diagnostic push
19+
# pragma GCC diagnostic ignored "-Wall"
20+
#endif
21+
22+
#include <cxxopts.hpp>
23+
24+
#ifdef COMPILER_CLANG
25+
# pragma clang diagnostic pop
26+
#elif defined(COMPILER_GCC)
27+
# pragma GCC diagnostic pop
28+
#endif
29+
1430
#include "Modbus_TCP_Slave.hpp"
1531
#include "license.hpp"
1632
#include "modbus_shm.hpp"

0 commit comments

Comments
 (0)