We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2799d16 commit 54dba9dCopy full SHA for 54dba9d
tools/testing/selftests/mm/Makefile
@@ -33,9 +33,16 @@ endif
33
# LDLIBS.
34
MAKEFLAGS += --no-builtin-rules
35
36
-CFLAGS = -Wall -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES) $(TOOLS_INCLUDES)
+CFLAGS = -Wall -O2 -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES) $(TOOLS_INCLUDES)
37
LDLIBS = -lrt -lpthread -lm
38
39
+# Some distributions (such as Ubuntu) configure GCC so that _FORTIFY_SOURCE is
40
+# automatically enabled at -O1 or above. This triggers various unused-result
41
+# warnings where functions such as read() or write() are called and their
42
+# return value is not checked. Disable _FORTIFY_SOURCE to silence those
43
+# warnings.
44
+CFLAGS += -U_FORTIFY_SOURCE
45
+
46
TEST_GEN_FILES = cow
47
TEST_GEN_FILES += compaction_test
48
TEST_GEN_FILES += gup_longterm
0 commit comments