From 7dc6366e3caaf27b6cd14fc0d93c009db1fa0b2c Mon Sep 17 00:00:00 2001 From: Andras Varga <andras@omnetpp.org> Date: Wed, 22 Jan 2025 17:42:11 +0100 Subject: [PATCH] makefrag: suppress warnings about C++17 features used in the code seen when used with omnetpp-6.0.3 --- src/makefrag | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/makefrag b/src/makefrag index 09711b867..3430b5c41 100644 --- a/src/makefrag +++ b/src/makefrag @@ -3,6 +3,9 @@ # MSGC:=$(MSGC) --msg6 +# Compile as C++17 to suppress warnings ("warning: decomposition declarations are a C++17 extension [-Wc++17-extensions]") +CFLAGS+= -std=c++17 + # # on Windows we have to link with the winsock2 library as it is no longer added # to the omnetpp system libraries by default (as of OMNeT++ 5.1)