As you noted, there is a clash between FE_INVALID from the enum and fenv.h/std.cfg. __extension__ is handled by adding --library=gnu.
I have created a ticket for the third issue: https://trac.cppcheck.net/ticket/11494
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I haven't yet got a simple reproducer yet.
https://github.com/MariaDB/server/blob/10.11/sql/sql_class.h#L334
sql/sql_class.h:334:3: error: syntax error [syntaxError]
enum drop_type { KEY, COLUMN, FOREIGN_KEY, CHECK_CONSTRAINT, PERIOD };
^
It seems that the error is produced by a file that includes
sql_class.h
. Can you narrow it down that way?Error from:
This is from:
And also:
__extension__
appears straight ignorable - https://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html#index-_005f_005fextension_005f_005freproduceable (preprocessed, not minimized, and slow):
I assume there's a way to take output at stages:
As you noted, there is a clash between
FE_INVALID
from the enum andfenv.h
/std.cfg.
__extension__
is handled by adding--library=gnu
.I have created a ticket for the third issue: https://trac.cppcheck.net/ticket/11494
Thank you.