Skip to content

Commit

Permalink
Use -Wextra (facebook#807)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#807

See what happens on CircleCI.

Reviewed By: ssj933

Differential Revision: D47281033

fbshipit-source-id: 0c7853f2895035d984c63c0c45d2ac910b7162a3
  • Loading branch information
agampe authored and facebook-github-bot committed Jul 19, 2023
1 parent 707d35d commit d896963
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,25 @@ DISABLED_WARNINGS = \
-Wno-invalid-offsetof \
-Wno-maybe-uninitialized \
-Wno-parentheses \
-Wno-range-loop-analysis \
-Wno-redundant-move \
-Wno-return-type \
-Wno-shift-count-overflow \
-Wno-sign-compare \
-Wno-strict-aliasing \
-Wno-stringop-overflow \
-Wno-stringop-overread \
-Wno-type-limits \
-Wno-uninitialized \
-Wno-unused-but-set-variable \
-Wno-unused-function \
-Wno-unused-parameter \
-Wno-unused-private-field \
-Wno-unused-result \
-Wno-unused-value \
-Wno-unused-variable

AM_CXXFLAGS = --std=gnu++17 -O3 -Wall -Werror $(DISABLED_WARNINGS) -g
AM_CXXFLAGS = --std=gnu++17 -O3 -Wall -Werror -Wextra $(DISABLED_WARNINGS) -g

include $(top_srcdir)/Makefile.inc

Expand Down
2 changes: 1 addition & 1 deletion libresource/android-base/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define _FB_MACROS_REIMPLEMENTATION

#ifndef FALLTHROUGH_INTENDED
#define FALLTHROUGH_INTENDED [[clang::fallthrough]]
#define FALLTHROUGH_INTENDED [[fallthrough]]
#endif

#endif // _FB_MACROS_REIMPLEMENTATION

0 comments on commit d896963

Please sign in to comment.