summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-02 19:12:28 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-02 19:12:28 +0200
commit1562c606908cc75c4efa44bcd7093dc4500dcec3 (patch)
tree7d03c2240cf66d6ca51ec70e1ed11e67aa8665cd
parent7d2e07fd4502aed3b841484855031ca8a48aebba (diff)
downloadlibtacplus-map-1562c606908cc75c4efa44bcd7093dc4500dcec3.tar.gz
libtacplus-map-1562c606908cc75c4efa44bcd7093dc4500dcec3.zip
Debian: fix compile error "truncated writing up to 255 bytes"
map_tacplus_user.c:334:50: error: ā€˜%sā€™ directive output may be truncated writing up to 255 bytes into a region of size 122 [-Werror=format-truncation=]
-rwxr-xr-xdebian/rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 5951990..b8959fb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,9 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
SHELL := sh -e
+CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
+CFLAGS+=-g3 -Wno-format-truncation
+export CFLAGS
%:
dh $@ --with autoreconf