Skip to content

Commit f018417

Browse files
committed
Makefile: Added -Wno-unused-result flag of GCC
Fixed issue PlatformLab#24. This commit is to ignore the warning message while building the source code. ``bash src/CoreArbiterServer.cc: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] ``` Signed-off-by: Geunsik Lim <[email protected]>
1 parent 6c7b6e3 commit f018417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CXX ?= g++
22
CCFLAGS=-g -Wall -Wformat=2 -Wextra -Wwrite-strings \
33
-Wno-unused-parameter -Wmissing-format-attribute -Wno-non-template-friend \
44
-Woverloaded-virtual -Wcast-qual -Wcast-align -Wconversion -fomit-frame-pointer \
5-
-std=c++11 -fPIC -O3 $(EXTRA_CXXFLAGS)
5+
-Wno-unused-result -std=c++11 -fPIC -O3 $(EXTRA_CXXFLAGS)
66

77
# Output directories
88
OBJECT_DIR = obj

0 commit comments

Comments
 (0)