Skip to content

Commit 2164f51

Browse files
authored
Fix GCC 9 Builds (#1024)
1 parent 216ba8b commit 2164f51

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

AMBuildScript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ class SMConfig(object):
295295
cxx.cxxflags += ['-Wno-delete-non-virtual-dtor']
296296
if cxx.version >= 'gcc-4.8':
297297
cxx.cflags += ['-Wno-unused-result']
298-
298+
if cxx.version >= 'gcc-9.0':
299+
cxx.cxxflags += ['-Wno-class-memaccess', '-Wno-packed-not-aligned']
299300
if have_clang:
300301
cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch']
301302
if cxx.version >= 'apple-clang-5.1' or cxx.version >= 'clang-3.4':

0 commit comments

Comments
 (0)