options_set(opts.warn, WARN_DOUBLE_DECLARATION, true);
options_set(opts.warn, WARN_CONST_VAR, true);
options_set(opts.warn, WARN_MULTIBYTE_CHARACTER, true);
+ options_set(opts.warn, WARN_UNKNOWN_PRAGMAS, true);
options_set(opts.flags, ADJUST_VECTOR_FIELDS, true);
options_set(opts.flags, FTEPP, false);
GMQCC_DEFINE_FLAG(CONST_VAR)
GMQCC_DEFINE_FLAG(MULTIBYTE_CHARACTER)
GMQCC_DEFINE_FLAG(TERNARY_PRECEDENCE)
+ GMQCC_DEFINE_FLAG(UNKNOWN_PRAGMAS)
#endif
#ifdef GMQCC_TYPE_OPTIMIZATIONS
}
else
{
- parseerror(parser, "unrecognized hash-keyword: `%s`", parser_tokval(parser));
+ (void)!parsewarning(parser, WARN_UNKNOWN_PRAGMAS, "ignoring #pragma %s", parser_tokval(parser));
return false;
}