Bug 1711846 - Followup: also disable stringop-overflow warnings in nrappkit code.

Differential Revision: https://phabricator.services.mozilla.com/D115565
This commit is contained in:
Mike Hommey 2021-05-20 02:59:18 +00:00
Родитель bcc513d58c
Коммит 92740a219c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -33,6 +33,7 @@ GYP_DIRS['nrappkit'].sandbox_vars['FINAL_LIBRARY'] = 'xul'
if CONFIG["CC_TYPE"] == "gcc":
GYP_DIRS['nICEr'].sandbox_vars['CFLAGS'] = ['-Wno-stringop-overflow']
GYP_DIRS['nrappkit'].sandbox_vars['CFLAGS'] = ['-Wno-stringop-overflow']
if int(CONFIG["CC_VERSION"].split(".")[0]) >= 8:
GYP_DIRS['nICEr'].sandbox_vars['CFLAGS'] += ['-Wno-stringop-truncation']
GYP_DIRS['nrappkit'].sandbox_vars['CFLAGS'] = ['-Wno-stringop-truncation']
GYP_DIRS['nrappkit'].sandbox_vars['CFLAGS'] += ['-Wno-stringop-truncation']