Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | Drop enable format string warnings to help gcc9 |
| 2 | |
| 3 | Fixes |
| 4 | | /mnt/a/yoe/build/tmp/work/core2-64-yoe-linux-musl/mozjs/52.9.1-r0/mozjs-52.9.1/js/src/jit/x64/BaseAssembler-x64.h:596:13: error: '%s' directive argument is null [-Werror=format-overflow=] |
| 5 | | 596 | spew("movq " MEM_obs ", %s", ADDR_obs(offset, base, index, scale), GPReg64Name(dst)); |
| 6 | | | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 7 | |
| 8 | Upstream-Status: Inappropriate [Workaround for gcc9] |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | |
| 11 | --- a/js/src/moz.build |
| 12 | +++ b/js/src/moz.build |
| 13 | @@ -785,7 +785,7 @@ if CONFIG['JS_HAS_CTYPES']: |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 14 | if CONFIG['CC_TYPE'] in ('clang', 'gcc'): |
| 15 | # Also disable strict-aliasing for GCC compiler, that is enabled by default |
| 16 | # starting with version 7.1, see Bug 1363009 |
| 17 | - CXXFLAGS += ['-Wno-shadow', '-Werror=format', '-fno-strict-aliasing'] |
| 18 | + CXXFLAGS += ['-Wno-shadow', '-fno-strict-aliasing'] |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 19 | |
| 20 | # Suppress warnings in third-party code. |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 21 | if CONFIG['CC_TYPE'] in ('clang', 'gcc'): |