From: Wolfgang (Blub) Bumiller Date: Sun, 28 Oct 2012 19:31:35 +0000 (+0100) Subject: -Wassign-function-types - since in qcc you may assign functionpointers which take... X-Git-Tag: 0.1-rc1~15 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8ed6676d0f2c13c895d5129ac07e62219e859cc9;p=xonotic%2Fgmqcc.git -Wassign-function-types - since in qcc you may assign functionpointers which take different parameters... --- diff --git a/main.c b/main.c index 223d090..ac3b1f5 100644 --- a/main.c +++ b/main.c @@ -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(); diff --git a/warns.def b/warns.def index 5e46023..adcc98d 100644 --- a/warns.def +++ b/warns.def @@ -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)