From 8ed6676d0f2c13c895d5129ac07e62219e859cc9 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 28 Oct 2012 20:31:35 +0100 Subject: [PATCH] -Wassign-function-types - since in qcc you may assign functionpointers which take different parameters... --- main.c | 1 + warns.def | 1 + 2 files changed, 2 insertions(+) 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) -- 2.39.2