Skip to content

Commit 70fe90c

Browse files
committed
build: Silence format-truncation and stringop-truncation
We deliberately use truncating formats and string operations, this is not something the compiler should warn us about.
1 parent 0902464 commit 70fe90c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ else
3333
QUIETFLAGS ?=
3434
QUIETFLAGS += -Wno-unused-label
3535
QUIETFLAGS += -Wno-format-overflow
36-
QUIETFLAGS += -Wno-format-truncation
37-
QUIETFLAGS += -Wno-stringop-truncation
3836
CXXQUIETFLAGS := $(QUIETFLAGS)
3937
CXXQUIETFLAGS += -Wno-catch-value
4038
endif
@@ -258,7 +256,7 @@ INCLUDE += $(LIBTIRPC_CFLAGS)
258256
# Compilation options. Perhaps some of these should come from Makefile.inc? (CXXFLAGS now does)
259257
INTEGER_OVERFLOW_FLAGS := -fwrapv
260258
OPT := -Os $(INTEGER_OVERFLOW_FLAGS)
261-
DEBUG := $(DEBUG) -g -Wall
259+
DEBUG := $(DEBUG) -g -Wall -Wno-stringop-truncation -Wno-format-truncation
262260
CFLAGS := $(INCLUDE) $(OPT) $(DEBUG) $(EXTRA_DEBUG) -DULAPI -std=gnu99 -fgnu89-inline -Werror=implicit-function-declaration $(CFLAGS) $(CPPFLAGS)
263261
CXXFLAGS := $(INCLUDE) $(EXTRA_DEBUG) -DULAPI $(DEBUG) $(OPT) -Woverloaded-virtual $(CXXFLAGS) $(CPPFLAGS)
264262
CXXFLAGS += $(call cxx-option, -Wno-psabi)

0 commit comments

Comments
 (0)