Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
bff171c9
Commit
bff171c9
authored
Jul 13, 2023
by
Romain Geissler
Committed by
Michael Grunder
Jul 13, 2023
Browse files
Allow disabling the -Werror flag.
parent
d7a84df9
Changes
1
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
bff171c9
...
...
@@ -39,7 +39,11 @@ export REDIS_TEST_CONFIG
CC
:=
$(
shell
sh
-c
'type $${CC%% *
}
>/dev/null 2>/dev/null && echo
$(CC)
|| echo gcc'
)
CXX
:=
$(
shell
sh
-c
'type $${CXX%% *
}
>/dev/null 2>/dev/null && echo
$(CXX)
|| echo g++'
)
OPTIMIZATION
?=
-O3
WARNINGS
=
-Wall
-Wextra
-Werror
-Wstrict-prototypes
-Wwrite-strings
-Wno-missing-field-initializers
WARNINGS
=
-Wall
-Wextra
-Wstrict-prototypes
-Wwrite-strings
-Wno-missing-field-initializers
USE_WERROR
?=
1
ifeq
($(USE_WERROR),1)
WARNINGS
+=
-Werror
endif
DEBUG_FLAGS
?=
-g
-ggdb
REAL_CFLAGS
=
$(OPTIMIZATION)
-fPIC
$(CPPFLAGS)
$(CFLAGS)
$(WARNINGS)
$(DEBUG_FLAGS)
$(PLATFORM_FLAGS)
REAL_LDFLAGS
=
$(LDFLAGS)
...
...
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