Browse Source

gcc: treat warnings as errors

Fabian Peter Hammerle 6 năm trước cách đây
mục cha
commit
87bd1679db
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -3,7 +3,7 @@ SOURCES = *.c
 .PHONY = format
 .PHONY = format
 
 
 rgpgfs : $(SOURCES)
 rgpgfs : $(SOURCES)
-	gcc -Wall $^ $(shell pkg-config fuse3 --cflags --libs) -o $@
+	gcc -Wall -Werror $^ $(shell pkg-config fuse3 --cflags --libs) -o $@
 
 
 format : $(SOURCES)
 format : $(SOURCES)
 	clang-format -i -verbose $^
 	clang-format -i -verbose $^