I'm attaching (see included build.log file) the recent gcc build log which contains lot of warning
with hardened CFLAGS. It would be nice if these issues could be
addresses in next release.
ftp.h:11:2: warning: type of bit-field 'small_large' is a GCC extension [-pedantic]
ftp.h:12:2: warning: type of bit-field 'large_large' is a GCC extension [-pedantic]
ftp.h:13:2: warning: type of bit-field 'large_small' is a GCC extension [-pedantic]
ftp.h:36:2: warning: type of bit-field 'done' is a GCC extension [-pedantic]
ftp.h:37:11: warning: type of bit-field 'binary' is a GCC extension [-pedantic]
...
_queue.h:17:1: warning: C++ style comments are not allowed in ISO C90 [enabled by default]
_queue.h:17:1: warning: (this will be reported only once per input file) [enabled by default]
...
utils.h:9:2: warning: C++ style comments are not allowed in ISO C90 [enabled by default]
utils.h:9:2: warning: (this will be reported only once per input file) [enabled by default]
wput.c: In function 'set_option':
wput.c:411:7: warning: C++ style comments are not allowed in ISO C90 [enabled by default]
wput.c:411:7: warning: (this will be reported only once per input file) [enabled by default]
wput.c: In function 'readwputrc':
wput.c:586:5: warning: ISO C90 forbids mixed declarations and code [-pedantic]
wput.c: In function 'commandlineoptions':
wput.c:680:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat]
wput.c:777:4: warning: string length '666' is greater than the length '509' ISO C90 compilers are required to support [-Woverlength-strings]
wput.c:793:4: warning: string length '1121' is greater than the length '509' ISO C90 compilers are required to support [-Woverlength-strings]
wput.c: In function 'main':
wput.c:171:12: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
wput.c:172:12: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
wput.c:173:12: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
...
ftp.c: In function 'do_delete':
ftp.c:499:5: warning: ISO C90 forbids mixed declarations and code [-pedantic]
ftp.c:518:5: warning: ISO C90 forbids mixed declarations and code [-pedantic]
...
ftplib.c: In function 'parse_passive_string':
ftplib.c:1103:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]