Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
bac571ac
Commit
bac571ac
authored
5 years ago
by
Paul Beesley
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "Makefile: Add default warning flags" into integration
parents
4d384eb4
00296576
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+10
-6
Makefile
with
10 additions
and
6 deletions
+10
-6
Makefile
View file @
bac571ac
...
...
@@ -220,23 +220,19 @@ ASFLAGS_aarch32 = $(march32-directive)
ASFLAGS_aarch64
=
$
(
march64-directive
)
WARNING1
:=
-Wextra
WARNING1
+=
-Wunused
-Wno-unused-parameter
WARNING1
+=
-Wmissing-declarations
WARNING1
+=
-Wmissing-format-attribute
WARNING1
+=
-Wmissing-prototypes
WARNING1
+=
-Wold-style-definition
WARNING1
+=
-Wunused-but-set-variable
WARNING1
+=
-Wunused-const-variable
WARNING2
:=
-Waggregate-return
WARNING2
+=
-Wcast-align
WARNING2
+=
-Wdisabled-optimization
WARNING2
+=
-Wnested-externs
WARNING2
+=
-Wshadow
WARNING2
+=
-Wlogical-op
WARNING2
+=
-Wmissing-field-initializers
WARNING2
+=
-Wsign-compare
WARNING2
+=
-Wmaybe-uninitialized
WARNING3
:=
-Wbad-function-cast
WARNING3
+=
-Wcast-qual
...
...
@@ -246,8 +242,6 @@ WARNING3 += -Wpadded
WARNING3
+=
-Wpointer-arith
WARNING3
+=
-Wredundant-decls
WARNING3
+=
-Wswitch-default
WARNING3
+=
-Wpacked-bitfield-compat
WARNING3
+=
-Wvla
ifeq
(${W},1)
WARNINGS
:=
$(WARNING1)
...
...
@@ -257,6 +251,16 @@ else ifeq (${W},3)
WARNINGS
:=
$(WARNING1)
$(WARNING2)
$(WARNING3)
endif
WARNINGS
+=
-Wunused
-Wno-unused-parameter
\
-Wdisabled-optimization
\
-Wvla
ifeq
($(findstring clang,$(notdir $(CC))),)
WARNINGS
+=
-Wunused-but-set-variable
\
-Wmaybe-uninitialized
\
-Wpacked-bitfield-compat
endif
ifneq
(${E},0)
ERRORS
:=
-Werror
endif
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help