Skip to content

Commit

Permalink
hexdump: set WARNERR to NO (failures on gcc-8, should be fixed upstream)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheusov committed Apr 29, 2019
1 parent 0d17d59 commit 69bac8d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hexdump/Makefile
Expand Up @@ -7,6 +7,17 @@ LINKS= ${BINDIR}/hexdump ${BINDIR}/od
COPTS.conv.c += -Wno-format-nonliteral
COPTS.display.c += -Wno-format-nonliteral

# Disable -Werror because of warning with gcc-8
# parse.c:314:5: error: 'strncpy' output truncated copying 1 byte from a string of length 2 [-Werror=stringop-truncation]
# strncpy(cs, PRId64, sizeof(PRId64) - 2);
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# parse.c:378:7: error: 'strncpy' output truncated copying 1 byte from a string of length 2 [-Werror=stringop-truncation]
# strncpy(cs, PRId64,
# ^~~~~~~~~~~~~~~~~~~
# sizeof(PRId64) - 2);
# ~~~~~~~~~~~~~~~~~~~
WARNERR = no

.include <mkc.init.mk>

.include "../mk/hacks.mk"
Expand Down

0 comments on commit 69bac8d

Please sign in to comment.