Skip to content

Commit

Permalink
Merge pull request #2612 from xrmx/fix-2609
Browse files Browse the repository at this point in the history
uwsgiconfig: don't add -Wformat-signedness with gcc < 5
  • Loading branch information
xrmx authored Feb 24, 2024
2 parents 367e6c5 + d70c02b commit 39f3ade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uwsgiconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,6 @@ def __init__(self, filename, mute=False):
'-D_LARGEFILE_SOURCE',
'-D_FILE_OFFSET_BITS=64'
]
if "gcc" in GCC:
cflags.append('-Wformat-signedness')
self.cflags = cflags + os.environ.get("CFLAGS", "").split() + self.get('cflags', '').split()

python_venv_include = os.path.join(sys.prefix, 'include', 'site',
Expand Down Expand Up @@ -770,6 +768,8 @@ def __init__(self, filename, mute=False):
self.cflags += ['-Wextra', '-Wno-unused-parameter', '-Wno-missing-field-initializers']
if gcc_major == 4 and gcc_minor < 9:
self.cflags.append('-Wno-format -Wno-format-security')
if "gcc" in GCC and gcc_major >= 5:
self.cflags.append('-Wformat-signedness')

self.ldflags = os.environ.get("LDFLAGS", "").split()
self.libs = ['-lpthread', '-lm', '-rdynamic']
Expand Down

0 comments on commit 39f3ade

Please sign in to comment.