projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48971ce
)
altos: Add -Wconversion
author
Keith Packard
<keithp@keithp.com>
Thu, 17 Feb 2022 05:48:01 +0000
(21:48 -0800)
committer
Keith Packard
<keithp@keithp.com>
Thu, 17 Feb 2022 05:48:01 +0000
(21:48 -0800)
This adds the -Wconversion flag to detect potential mistakes in
implicit type conversion.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/Makefile.defs
patch
|
blob
|
history
diff --git
a/src/Makefile.defs
b/src/Makefile.defs
index 897f7ac1b35ade9d2574b45c6e1f1208f6923a6a..d9b719973da61e5c52fabe871d8b3111318b7630 100644
(file)
--- a/
src/Makefile.defs
+++ b/
src/Makefile.defs
@@
-16,7
+16,8
@@
WARN_FLAGS=-Wall -Wextra -Werror -Wcast-align \
-Wmissing-declarations \
-Wnested-externs \
-Wshadow \
- -Warray-bounds=2
+ -Warray-bounds=2 \
+ -Wconversion
OPT=-Os -Wl,-Map=$(PROGNAME)-$(VERSION).map