-Wassign-function-types - since in qcc you may assign functionpointers which take different parameters...

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-10-28 20:31:35 +01:00
parent f56c5f425a
commit 8ed6676d0f
2 changed files with 2 additions and 0 deletions

1
main.c
View file

@ -408,6 +408,7 @@ int main(int argc, char **argv) {
options_set(opts_warn, WARN_UNUSED_VARIABLE, true);
options_set(opts_warn, WARN_EFFECTLESS_STATEMENT, true);
options_set(opts_warn, WARN_END_SYS_FIELDS, true);
options_set(opts_warn, WARN_ASSIGN_FUNCTION_TYPES, true);
if (!options_parse(argc, argv)) {
return usage();

View file

@ -18,3 +18,4 @@ GMQCC_DEFINE_FLAG(VARIADIC_FUNCTION)
GMQCC_DEFINE_FLAG(FRAME_MACROS)
GMQCC_DEFINE_FLAG(EFFECTLESS_STATEMENT)
GMQCC_DEFINE_FLAG(END_SYS_FIELDS)
GMQCC_DEFINE_FLAG(ASSIGN_FUNCTION_TYPES)