Skip to content

Commit

Permalink
build: [g++-5.4.0] suppress boost warnings
Browse files Browse the repository at this point in the history
Problem: sched fails to compile with gcc-5.4.0
and boost-1.53 due to excessive compiler warnings
that are treated as errors.

Suppress the following warnings completely:
  unused-local-typedefs
  deprecated-declarations
  unused-variable

Don't suppress this warning since it may identify a real
problem at resource_gen_spec.cpp:26, but for now make it
non-fatal:
  maybe-uninitialized
  • Loading branch information
garlick committed Mar 30, 2018
1 parent b9f16e9 commit 3b13bd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resource/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
AM_CXXFLAGS = \
$(WARNING_CXXFLAGS) \
-Wno-unused-local-typedefs \
-Wno-deprecated-declarations \
-Wno-unused-variable \
-Wno-error=maybe-uninitialized \
$(CODE_COVERAGE_CXXFLAGS)

AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS)
Expand Down

0 comments on commit 3b13bd9

Please sign in to comment.