altos: Add -Wconversion
authorKeith Packard <keithp@keithp.com>
Thu, 17 Feb 2022 05:48:01 +0000 (21:48 -0800)
committerKeith 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

index 897f7ac1b35ade9d2574b45c6e1f1208f6923a6a..d9b719973da61e5c52fabe871d8b3111318b7630 100644 (file)
@@ -16,7 +16,8 @@ WARN_FLAGS=-Wall -Wextra -Werror -Wcast-align \
        -Wmissing-declarations \
        -Wnested-externs \
        -Wshadow \
        -Wmissing-declarations \
        -Wnested-externs \
        -Wshadow \
-       -Warray-bounds=2
+       -Warray-bounds=2 \
+       -Wconversion
 
 OPT=-Os -Wl,-Map=$(PROGNAME)-$(VERSION).map
 
 
 OPT=-Os -Wl,-Map=$(PROGNAME)-$(VERSION).map