aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-11-06 17:04:45 +0100
committerHarald Welte <laforge@osmocom.org>2022-11-07 10:08:09 +0100
commit8d5fc1db44ee18d2881c461cc6ebdc650468ad8c (patch)
tree16d7f3e6cfd10496ae50a756fbe67adc662e29bf /include/osmocom
parentbe912e7c1d8234847a0c21974d2068223a60dd7e (diff)
vty/logging.h: Avoid -Werror=pragmas error in C++ code
The newly-introdiced pragma to disable strict-prototypes checking works in C, but creates a -Werror=pragmas error in C++ code: In file included from osmo-trx.cpp:45: /build/deps/install/stow/libosmocore/include/osmocom/vty/logging.h:10:32: error: option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [-Werror=pragmas] #pragma GCC diagnostic ignored "-Wstrict-prototypes" So let's also suppress those errors for that one line of code... Change-Id: I85596cf4538d7a8c522f4bce1620a2d19e2a910e
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/vty/logging.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/vty/logging.h b/include/osmocom/vty/logging.h
index 9be96e56..b3ce92c7 100644
--- a/include/osmocom/vty/logging.h
+++ b/include/osmocom/vty/logging.h
@@ -7,6 +7,7 @@
struct log_info;
#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
/* note this undefined argument declaration is intentional. There used
* to be an argument until 2017 which we no longer need .*/