Squash truncation warning

This commit is contained in:
cpq committed 2021-03-17 12:22:19 +00:00
1 parent e7b1905e49
commit 41c1e0f08d
3 files changed
+8 -6

No files matched your search

+2 -2
View File
@@ -41,7 +41,7 @@ mg_prefix: mongoose.c mongoose.h
$(CLANG) mongoose.c $(CFLAGS) -c -o /tmp/x.o && nm /tmp/x.o | grep ' T' | grep -v 'mg_' ; test $$? = 1
# C++ build
test++: CLANG = g++ -Wno-deprecated -Wno-missing-field-initializers -Wno-error=format-truncation -Wno-unknown-warning-option
test++: CLANG = g++ -Wno-deprecated -Wno-missing-field-initializers
test++: unamalgamated
# Make sure we can build from an unamalgamated sources
@@ -92,7 +92,7 @@ linux: Makefile mongoose.c mongoose.h test/unit_test.c
$(GCC) $(CC) mongoose.c test/unit_test.c $(CFLAGS) $(LDFLAGS) -o unit_test_gcc
$(GCC) ./unit_test_gcc
linux++: CC = g++ -Wno-missing-field-initializers -Wno-error=format-truncation
linux++: CC = g++ -Wno-missing-field-initializers
linux++: linux
mongoose.c: $(SRCS) Makefile