Hello,
In case it’s useful, here are several warnings that were generated
on my Linux compile on Slackware 14.1 kernel 3.10.17.
Regards,
—Ed
pw_dup.c: In function 'pw_dup':
pw_dup.c:47:3: warning: 'ssize' may be used uninitialized in this function
[-Wmaybe-uninitialized]
(void)memcpy(cp, pw->name, size); \
^
pw_dup.c:57:39: note: 'ssize' was declared here
size_t nsize, psize, gsize, dsize, ssize, total;
^
pw_dup.c:47:3: warning: 'dsize' may be used uninitialized in this function
[-Wmaybe-uninitialized]
(void)memcpy(cp, pw->name, size); \
^
pw_dup.c:57:32: note: 'dsize' was declared here
size_t nsize, psize, gsize, dsize, ssize, total;
^
pw_dup.c:47:3: warning: 'gsize' may be used uninitialized in this function
[-Wmaybe-uninitialized]
(void)memcpy(cp, pw->name, size); \
^
pw_dup.c:57:25: note: 'gsize' was declared here
size_t nsize, psize, gsize, dsize, ssize, total;
^
pw_dup.c:47:3: warning: 'psize' may be used uninitialized in this function
[-Wmaybe-uninitialized]
(void)memcpy(cp, pw->name, size); \
^
pw_dup.c:57:18: note: 'psize' was declared here
size_t nsize, psize, gsize, dsize, ssize, total;
^
pw_dup.c:49:6: warning: 'nsize' may be used uninitialized in this function
[-Wmaybe-uninitialized]
cp += size; \
^
pw_dup.c:57:11: note: 'nsize' was declared here
size_t nsize, psize, gsize, dsize, ssize, total;
^
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../smtpd -I../../openbsd-compat -I.
-I/usr/include -DSMTPD_CONFDIR=\"/etc/opensmtpd\" -DPATH_CHROOT=\"/var/empty\"
-DPATH_SMTPCTL=\"/usr/sbin/smtpctl\"
-DPATH_MAILLOCAL=\"/usr/libexec/opensmtpd/mail.local\"
-DPATH_LIBEXEC=\"/usr/libexec/opensmtpd\" -DHAVE_CONFIG_H -DIO_SSL
-DCA_FILE=\"/etc/ssl/certs/ca-certificates.crt\" -O2 -fPIC -fstack-protector
-fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare
-Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign
-Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -D_BSD_SOURCE
-D_GNU_SOURCE -DNEED_EVENT_ASR_RUN -c -o ../../smtpd/smtpd-to.o `test -f
'../../smtpd/to.c' || echo './'`../../smtpd/to.c
../../smtpd/to.c: In function 'time_to_text':
../../smtpd/to.c:212:5: warning: assignment discards 'const' qualifier from
pointer target type [enabled by default]
tz = lt->tm_zone;
^
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../smtpd -I../../openbsd-compat -I.
-I/usr/include -DSMTPD_CONFDIR=\"/etc/opensmtpd\" -DPATH_CHROOT=\"/var/empty\"
-DPATH_SMTPCTL=\"/usr/sbin/smtpctl\"
-DPATH_MAILLOCAL=\"/usr/libexec/opensmtpd/mail.local\"
-DPATH_LIBEXEC=\"/usr/libexec/opensmtpd\" -DHAVE_CONFIG_H -DNO_IO
-DPATH_GZCAT=\"/usr/bin/zcat\"
-DPATH_ENCRYPT=\"/usr/libexec/opensmtpd/encrypt\" -O2 -fPIC -fstack-protector
-fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare
-Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign
-Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -D_BSD_SOURCE
-D_GNU_SOURCE -c -o ../../smtpd/smtpctl-parser.o `test -f
'../../smtpd/parser.c' || echo './'`../../smtpd/parser.c
../../smtpd/parser.c:123:1: warning: 'cmd_dump' defined but not used
[-Wunused-function]
cmd_dump(struct node *node, int depth)
^
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../smtpd -I../../openbsd-compat -I.
-I/usr/include -DSMTPD_CONFDIR=\"/etc/opensmtpd\" -DPATH_CHROOT=\"/var/empty\"
-DPATH_SMTPCTL=\"/usr/sbin/smtpctl\"
-DPATH_MAILLOCAL=\"/usr/libexec/opensmtpd/mail.local\"
-DPATH_LIBEXEC=\"/usr/libexec/opensmtpd\" -DHAVE_CONFIG_H -DNO_IO
-DPATH_GZCAT=\"/usr/bin/zcat\"
-DPATH_ENCRYPT=\"/usr/libexec/opensmtpd/encrypt\" -O2 -fPIC -fstack-protector
-fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare
-Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign
-Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -D_BSD_SOURCE
-D_GNU_SOURCE -c -o ../../smtpd/smtpctl-to.o `test -f '../../smtpd/to.c' ||
echo './'`../../smtpd/to.c
../../smtpd/to.c: In function 'time_to_text':
../../smtpd/to.c:212:5: warning: assignment discards 'const' qualifier from
pointer target type [enabled by default]
tz = lt->tm_zone;
^
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]