diff --git a/uwsgiconfig.py b/uwsgiconfig.py index 84e8ef15..5db535df 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -698,7 +698,7 @@ class uConf(object): # add -fno-strict-aliasing only on python2 and gcc < 4.3 if gcc_major >= 4: self.cflags = self.cflags + [ '-Wextra', '-Wno-unused-parameter', '-Wno-missing-field-initializers' ] - if (gcc_major == 4 and gcc_minor >= 8) or gcc_major > 4: + if gcc_major == 4 and gcc_minor < 9: self.cflags.append('-Wno-format -Wno-format-security') self.ldflags = os.environ.get("LDFLAGS", "").split()