Here is list of compiler warnings that might need fixing for the upcoming gcc 7.x
Full log also attached.
clparam_list.cc: In member function 'void Clparam_list::logdump(Logfile&) const':
clparam_list.cc:158:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (!get_global_callback ().empty ());
^~
clparam_list.cc:159:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
l.write (" global_callback: " + get_global_callback ());
^
parser.yy:366:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
"(option --gnulib enables it)");
^
parser.yy:374:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
"(option --gnulib enables it)");
^
parser.yy:382:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
"(option --gnulib enables it)");
^
parser.yy:390:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
"(option --gnulib enables it)");
^
parser.yy:399:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
"(option --gnulib enables it)");
^
parser.cc:2258:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
yyerror (YY_("syntax error"));
^
parser.cc:2401:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
yyerror (YY_("memory exhausted"));
^
/usr/lib/gcc-snapshot/bin/g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -fdebug-prefix-map=/srv/deb/debian/genparse/genparse.git=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -c -o lexer.o lexer.cc
lexer.cc:2676:17: warning: 'void yyunput(int, char*)' defined but not used [-Wunused-function]
register char *yy_cp;
^~~~~~
cldesc.cc:41:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (this != &rhs)
^~
cldesc.cc:43:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
_start_1st_col = rhs._start_1st_col;
^~~~~~~~~~~~~~
doxygen Doxyfile
warning: Tag `SYMBOL_CACHE_SIZE' at line 289 of file `Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `SHOW_DIRECTORIES' at line 483 of file `Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `HTML_ALIGN_MEMBERS' at line 816 of file `Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `USE_INLINE_TREES' at line 985 of file `Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `XML_SCHEMA' at line 1187 of file `Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `XML_DTD' at line 1193 of file `Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: doxygen no longer ships with the FreeSans font.
You may want to clear or change DOT_FONTNAME.
Generating code for file eh.cc../srv/deb/debian/genparse/genparse.git/src/lexer.cc:3107: warning: argument 'bytes' of command @param is not found in the argument list of yy_scan_bytes(yyconst char *yybytes, int _yybytes_len)
/srv/deb/debian/genparse/genparse.git/src/lexer.cc:3107: warning: argument 'len' of command @param is not found in the argument list of yy_scan_bytes(yyconst char *yybytes, int _yybytes_len)
/srv/deb/debian/genparse/genparse.git/src/lexer.cc:319: warning: The following parameters of yy_scan_bytes(yyconst char *yybytes, int _yybytes_len) are not documented:
parameter 'yybytes'
parameter '_yybytes_len'
ftest.c: In function 'main':
ftest.c:30:5: warning: implicit declaration of function 'AddTests' [-Wimplicit-function-declaration]
AddTests ();
^~~~~~~~
default_test.c: In function 'my_function':
default_test.c:195:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
longmembers_test.c:195:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
These compiler warnings revealed a couple of bugs. Fixed in release 0.9.3.