Skip to content

Commit

Permalink
[test] Compile test project with c++11 explicitly
Browse files Browse the repository at this point in the history
If an old GCC compiler is installed on a machine which doesn't use C++11
by default, the tests may fail. There are some checkers (e.g.
misc-definitions-in-headers) which report only from C++11. If these
reports are missing with an old compiler then the number of reports will
not be as expected.
  • Loading branch information
bruntib committed Apr 26, 2021
1 parent 169146e commit f46a237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/tests/projects/cpp/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
OBJS = $(SRCS:.cpp=.o)

CXXFLAGS = -Wno-all -Wno-extra
CXXFLAGS = -Wno-all -Wno-extra -std=c++11

SRCS = call_and_message.cpp \
divide_zero.cpp \
Expand Down

0 comments on commit f46a237

Please sign in to comment.