Skip to content

Commit

Permalink
Makefile: Added -Wno-unused-result flag of GCC
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
leemgs committed Apr 16, 2019
1 parent 6c7b6e3 commit f018417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CXX ?= g++
CCFLAGS=-g -Wall -Wformat=2 -Wextra -Wwrite-strings \
-Wno-unused-parameter -Wmissing-format-attribute -Wno-non-template-friend \
-Woverloaded-virtual -Wcast-qual -Wcast-align -Wconversion -fomit-frame-pointer \
-std=c++11 -fPIC -O3 $(EXTRA_CXXFLAGS)
-Wno-unused-result -std=c++11 -fPIC -O3 $(EXTRA_CXXFLAGS)

# Output directories
OBJECT_DIR = obj
Expand Down

0 comments on commit f018417

Please sign in to comment.