Skip to content

Commit ff49db2

Browse files
committed
Fix the one format-truncation diagnostic & re-enable it
1 parent e53842d commit ff49db2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ INCLUDE += $(LIBTIRPC_CFLAGS)
256256
# Compilation options. Perhaps some of these should come from Makefile.inc? (CXXFLAGS now does)
257257
INTEGER_OVERFLOW_FLAGS := -fwrapv
258258
OPT := -Os $(INTEGER_OVERFLOW_FLAGS)
259-
DEBUG := $(DEBUG) -g -Wall -Wno-stringop-truncation -Wno-format-truncation
259+
DEBUG := $(DEBUG) -g -Wall -Wno-stringop-truncation
260260
CFLAGS := $(INCLUDE) $(OPT) $(DEBUG) $(EXTRA_DEBUG) -DULAPI -std=gnu99 -fgnu89-inline -Werror=implicit-function-declaration $(CFLAGS) $(CPPFLAGS)
261261
CXXFLAGS := $(INCLUDE) $(EXTRA_DEBUG) -DULAPI $(DEBUG) $(OPT) -Woverloaded-virtual $(CXXFLAGS) $(CPPFLAGS)
262262
CXXFLAGS += $(call cxx-option, -Wno-psabi)

src/hal/user_comps/mb2hal/mb2hal_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ retCode parse_pin_names(const char * names_string, mb_tx_t *this_mb_tx)
163163
retCode parse_transaction_section(const int mb_tx_num)
164164
{
165165
char *fnct_name = "parse_transaction_section";
166-
char section[20];
166+
char section[40];
167167
char *tag;
168168
const char *tmpstr;
169169
mb_tx_t *this_mb_tx;

0 commit comments

Comments
 (0)