]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
-Wassign-function-types - since in qcc you may assign functionpointers which take...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 28 Oct 2012 19:31:35 +0000 (20:31 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 28 Oct 2012 19:31:35 +0000 (20:31 +0100)
main.c
warns.def

diff --git a/main.c b/main.c
index 223d090df6fd840d870324a5d5d8a19c82f468ca..ac3b1f556e01ef848721531dc7fb21cfe28a7a70 100644 (file)
--- 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();
index 5e46023faf94bdf777d502e76539264a9e78d3b2..adcc98d854aece765f2f6033dca350de22521a0d 100644 (file)
--- 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)