-# This is in addition to the warning flags defined by default.
-# You can use it to enable/disable warnings globally or for specific
-# files, e.g.
-# fortran-warn = -Wno-strict-prototypes
-# fortran/arith.o-warn = -Wno-error
-#
-# We don't need these cheats, everything builds fine with all warnings
-# enabled and -Werror.
+# Use strict warnings for this front end.
+fortran-warn = $(STRICT_WARN)
+
+# These files get warnings from an inline function in GMP saying:
+# "control may reach end of non-void function '__gmpz_get_ui' being inlined"
+fortran/expr.o-warn = -Wno-error
+fortran/resolve.o-warn = -Wno-error
+fortran/simplify.o-warn = -Wno-error
+fortran/trans-common.o-warn = -Wno-error