[nsd-users] NSD 4.1.11

A. Schulze sca at andreasschulze.de
Tue Aug 9 12:30:21 UTC 2016


W.C.A. Wijngaards:

> NSD 4.1.11 is available

I'm a litte bit to late, just started yesterday playing with rc2 :-/

beside "thanks for nsd", some notes:

1. a typo
xfrd.c, line 1995: "transfered" should be written "transferred"

2. comiler warnings:

**** Debian Jessie, i386
gcc -D_FORTIFY_SOURCE=2 -I. -g -O2 -fstack-protector-strong -Wformat  
-Werror=format-security -Wall -W -Wall -Wextra  
-Wdeclaration-after-statement -c configlexer.c
<stdout>: In function 'c__get_next_buffer':
<stdout>:1490:18: warning: comparison between signed and unsigned  
integer expressions [-Wsign-compare]
<stdout>:2427:3: note: in expansion of macro 'YY_INPUT'
<stdout>:2435:23: warning: comparison between signed and unsigned  
integer expressions [-Wsign-compare]

gcc -D_FORTIFY_SOURCE=2 -I. -g -O2 -fstack-protector-strong -Wformat  
-Werror=format-security -Wall -W -Wall -Wextra  
-Wdeclaration-after-statement -c xfrd-disk.c
xfrd-disk.c: In function 'xfrd_read_state':
xfrd-disk.c:270:19: warning: comparison between signed and unsigned  
integer expressions [-Wsign-compare]
    if (soa_refresh > zone->zone_options->pattern->max_refresh_time)
                    ^
xfrd-disk.c:272:24: warning: comparison between signed and unsigned  
integer expressions [-Wsign-compare]
    else if (soa_refresh < zone->zone_options->pattern->min_refresh_time)
                         ^
xfrd-disk.c:277:5: warning: comparison between signed and unsigned  
integer expressions [-Wsign-compare]
      > soa_refresh))
      ^

gcc -D_FORTIFY_SOURCE=2 -I. -g -O2 -fstack-protector-strong -Wformat  
-Werror=format-security -Wall -W -Wall -Wextra  
-Wdeclaration-after-statement -c xfrd.c
xfrd.c: In function 'xfrd_set_timer_refresh':
xfrd.c:706:18: warning: comparison between signed and unsigned integer  
expressions [-Wsign-compare]
   if (set_refresh > zone->zone_options->pattern->max_refresh_time)
                   ^
xfrd.c:708:23: warning: comparison between signed and unsigned integer  
expressions [-Wsign-compare]
   else if (set_refresh < zone->zone_options->pattern->min_refresh_time)
                        ^
xfrd.c: In function 'xfrd_set_timer_retry':
xfrd.c:753:16: warning: comparison between signed and unsigned integer  
expressions [-Wsign-compare]
    if(set_retry > zone->zone_options->pattern->max_retry_time)
                 ^
xfrd.c:755:21: warning: comparison between signed and unsigned integer  
expressions [-Wsign-compare]
    else if(set_retry < zone->zone_options->pattern->min_retry_time)
                      ^
gcc -D_FORTIFY_SOURCE=2 -I. -g -O2 -fstack-protector-strong -Wformat  
-Werror=format-security -Wall -W -Wall -Wextra  
-Wdeclaration-after-statement -c ipc.c
ipc.c: In function 'child_handle_parent_command':
ipc.c:85:3: warning: ignoring return value of 'write', declared with  
attribute warn_unused_result [-Wunused-result]
    (void)write(fd, &mode, sizeof(mode));
    ^

**** Debian Jessie, amd64
gcc -D_FORTIFY_SOURCE=2 -I. -g -O2 -fstack-protector-strong -Wformat  
-Werror=format-security -Wall -W -Wall -Wextra  
-Wdeclaration-after-statement -c configlexer.c
<stdout>: In function 'c__get_next_buffer':
<stdout>:1490:18: warning: comparison between signed and unsigned  
integer expressions [-Wsign-compare]
<stdout>:2427:3: note: in expansion of macro 'YY_INPUT'
<stdout>:2435:23: warning: comparison between signed and unsigned  
integer expressions [-Wsign-compare]

gcc -D_FORTIFY_SOURCE=2 -I. -g -O2 -fstack-protector-strong -Wformat  
-Werror=format-security -Wall -W -Wall -Wextra  
-Wdeclaration-after-statement -c ipc.c
ipc.c: In function 'child_handle_parent_command':
ipc.c:85:3: warning: ignoring return value of 'write', declared with  
attribute warn_unused_result [-Wunused-result]
    (void)write(fd, &mode, sizeof(mode));
    ^

gcc -D_FORTIFY_SOURCE=2 -I. -g -O2 -fstack-protector-strong -Wformat  
-Werror=format-security -Wall -W -Wall -Wextra  
-Wdeclaration-after-statement -c zlexer.c
<stdout>: In function 'yy_get_next_buffer':
<stdout>:760:18: warning: comparison between signed and unsigned  
integer expressions [-Wsign-compare]
<stdout>:1466:3: note: in expansion of macro 'YY_INPUT'
<stdout>:1474:23: warning: comparison between signed and unsigned  
integer expressions [-Wsign-compare]

**** SLES11, i586
gcc -I. -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall  
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables  
-fasynchronous-unwind-tables -g -W -Wall -Wextra  
-Wdeclaration-after-statement -c configlexer.c
<stdout>: In function 'c__get_next_buffer':
<stdout>:2427: warning: comparison between signed and unsigned
<stdout>:2435: warning: comparison between signed and unsigned

gcc -I. -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall  
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables  
-fasynchronous-unwind-tables -g -W -Wall -Wextra  
-Wdeclaration-after-statement -c xfrd-disk.c
xfrd-disk.c: In function 'xfrd_read_state':
xfrd-disk.c:270: warning: comparison between signed and unsigned
xfrd-disk.c:272: warning: comparison between signed and unsigned
xfrd-disk.c:277: warning: comparison between signed and unsigned

gcc -I. -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall  
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables  
-fasynchronous-unwind-tables -g -W -Wall -Wextra  
-Wdeclaration-after-statement -c xfrd.c
xfrd.c: In function 'xfrd_set_timer_refresh':
xfrd.c:706: warning: comparison between signed and unsigned
xfrd.c:708: warning: comparison between signed and unsigned
xfrd.c: In function 'xfrd_set_timer_retry':
xfrd.c:753: warning: comparison between signed and unsigned
xfrd.c:755: warning: comparison between signed and unsigned

gcc -I. -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall  
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables  
-fasynchronous-unwind-tables -g -W -Wall -Wextra  
-Wdeclaration-after-statement -c ipc.c
ipc.c: In function 'child_handle_parent_command':
ipc.c:85: warning: ignoring return value of 'write', declared with  
attribute warn_unused_result

gcc -I. -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall  
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables  
-fasynchronous-unwind-tables -g -W -Wall -Wextra  
-Wdeclaration-after-statement -c zlexer.c
<stdout>: In function 'yy_get_next_buffer':
<stdout>:1466: warning: comparison between signed and unsigned
<stdout>:1474: warning: comparison between signed and unsigned

gcc -I. -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall  
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables  
-fasynchronous-unwind-tables -g -W -Wall -Wextra  
-Wdeclaration-after-statement -c zonec.c
zonec.c: In function 'zparser_conv_loc':
zonec.c:956: warning: ignoring return value of 'strtol', declared with  
attribute warn_unused_result

*** SLES11, x86_64
gcc -I. -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2  
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -W  
-Wall -Wextra -Wdeclaration-after-statement -c configlexer.c
<stdout>: In function 'c__get_next_buffer':
<stdout>:2427: warning: comparison between signed and unsigned
<stdout>:2435: warning: comparison between signed and unsigned

gcc -I. -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2  
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -W  
-Wall -Wextra -Wdeclaration-after-statement -c ipc.c
ipc.c: In function 'child_handle_parent_command':
ipc.c:85: warning: ignoring return value of 'write', declared with  
attribute warn_unused_result

gcc -I. -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2  
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -W  
-Wall -Wextra -Wdeclaration-after-statement -c zlexer.c
<stdout>: In function 'yy_get_next_buffer':
<stdout>:1466: warning: comparison between signed and unsigned
<stdout>:1474: warning: comparison between signed and unsigned

gcc -I. -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2  
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -W  
-Wall -Wextra -Wdeclaration-after-statement -c zonec.c
zonec.c: In function 'zparser_conv_loc':
zonec.c:956: warning: ignoring return value of 'strtol', declared with  
attribute warn_unused_result

Andreas




More information about the nsd-users mailing list