[xml/sgml-pkgs] Bug#733333: backend.c:737:5: warning: format '%d' expects argument of type 'int', but argument 7 has type 'size_t' [-Wformat=]

Mathieu Malaterre malat at debian.org
Sat Dec 28 16:12:44 UTC 2013


Package: refdb

gcc -DPACKAGE_NAME=\"refdb\" -DPACKAGE_TARNAME=\"refdb\"
-DPACKAGE_VERSION=\"1.0.0-pre2\" -DPACKAGE_STRING=\"refdb\
1.0.0-pre2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\"
-DPACKAGE=\"refdb\" -DVERSION=\"1.0.0-pre2\" -D_GNU_SOURCE=1
-DREADLINE42=1 -DHAVE_ICONV=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SOCKLEN_T=1
-DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1
-DHAVE_SYS_FILE_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_IOCTL_H=1
-DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1
-DRETSIGTYPE=void -DHAVE_STRFTIME=1 -DHAVE_MKFIFO=1
-DHAVE_GETHOSTNAME=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRCSPN=1
-DHAVE_STRSTR=1 -DHAVE_STRTOLL=1 -DHAVE_ATOLL=1 -I.
-DSYSCONFDIR=\"/etc/refdb\" -DULLSPEC=\"%llu\" -D_FORTIFY_SOURCE=2  -g
-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -O2 -c -o backend.o backend.c
backend.c: In function 'request_notes_by_ref':
backend.c:737:5: warning: format '%d' expects argument of type 'int',
but argument 7 has type 'size_t' [-Wformat=]
     snprintf(namespec, 512, " AND NOT (%s(t_note.note_key%s1%s
%d)=\'%s\') ", my_dbi_driver_get_cap(driver, "substring"),
my_dbi_driver_get_cap(driver, "substring_from"),
my_dbi_driver_get_cap(driver, "substring_for"), namelen, user);
     ^



More information about the debian-xml-sgml-pkgs mailing list