summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@gnome.org>2023-12-04 13:02:48 +0000
committerPhilip Withnall <pwithnall@gnome.org>2023-12-04 13:12:21 +0000
commit14a32bd8f477237031a5e10856d0d6789d5509dc (patch)
tree3457985b642a99c66f0ebb825abd3cd22dae8917 /src
parent2699498639aeb0d323ca3484b5ae580e4724fffb (diff)
build: Enable -Werror=sign-compare
xdgmime is a low-level library which uses pointer arithmetic in conjunction with reading user-controlled files. We definitely want to make sure the code is arithmetically correct. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 44c44f7..c2a9a76 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -2,7 +2,7 @@
.PHONY: all clean
C_STD = -std=c99 -D_POSIX_C_SOURCE=200809L
-ALL_CFLAGS = $(C_STD) -c -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP -Wall -Wmissing-prototypes -Wno-sign-compare $(CFLAGS)
+ALL_CFLAGS = $(C_STD) -c -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP -Wall -Wmissing-prototypes -Werror=sign-compare $(CFLAGS)
.c.o:
$(CC) $(ALL_CFLAGS) -o $@ $<