|
This avoids the following error with GCC 7:
In file included from /usr/include/bits/getopt_posix.h:27:0,
from /usr/include/unistd.h:872,
from src/libs/libgroff/maxfilename.cc:28:
/usr/include/bits/getopt_core.h:91:12: error: declaration of 'int
getopt(int, char* const*, const char*) throw ()' has a different
exception specifier
extern int getopt (int ___argc, char *const *___argv,
const char *__shortopts)
^~~~~~
In file included from src/include/lib.h:42:0,
from src/libs/libgroff/maxfilename.cc:23:
src/include/groff-getopt.h:50:12: note: from previous declaration
'int getopt(int, char* const*, const char*)'
extern int getopt(int, // __argc
^~~~~~
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
|