Disable some warnings that break build with GCC 9.2 Temporary, until compilation failures are addressed in upstream Change-Id: Ia363d73e585ff5c86f81362d16ceabf907a9e014 Signed-off-by: Eugene Mutavchi <Ievgen_Mutavchi@comcast.com>
diff --git a/src/third_party/starboard/rdk/arm/gyp_configuration.gypi b/src/third_party/starboard/rdk/arm/gyp_configuration.gypi index acb5462..854e5db 100644 --- a/src/third_party/starboard/rdk/arm/gyp_configuration.gypi +++ b/src/third_party/starboard/rdk/arm/gyp_configuration.gypi
@@ -84,6 +84,8 @@ # matters: Wall implies Wunused-parameter and Wno-unused-parameter # has no effect if specified before Wall. '-Wno-unused-parameter', + '-Wno-expansion-to-defined', + '-Wno-implicit-fallthrough', # Specify the sysroot with all your include dependencies. '--sysroot=<(sysroot)', @@ -174,6 +176,10 @@ 'cflags_cc': [ '-std=gnu++11', '-Wno-literal-suffix', + '-Wno-deprecated-copy', + '-Wno-invalid-offsetof', + '-Wno-ignored-qualifiers', + '-Wno-pessimizing-move', ], 'default_configuration': 'rdk-arm', 'configurations': {
diff --git a/src/third_party/starboard/rdk/brcm/arm/gyp_configuration.gypi b/src/third_party/starboard/rdk/brcm/arm/gyp_configuration.gypi index aac5fc9..7c1a326 100644 --- a/src/third_party/starboard/rdk/brcm/arm/gyp_configuration.gypi +++ b/src/third_party/starboard/rdk/brcm/arm/gyp_configuration.gypi
@@ -84,6 +84,8 @@ # matters: Wall implies Wunused-parameter and Wno-unused-parameter # has no effect if specified before Wall. '-Wno-unused-parameter', + '-Wno-expansion-to-defined', + '-Wno-implicit-fallthrough', # Specify the sysroot with all your include dependencies. '--sysroot=<(sysroot)', @@ -174,6 +176,10 @@ 'cflags_cc': [ '-std=gnu++11', '-Wno-literal-suffix', + '-Wno-deprecated-copy', + '-Wno-invalid-offsetof', + '-Wno-ignored-qualifiers', + '-Wno-pessimizing-move', ], 'default_configuration': 'rdk-brcm-arm', 'configurations': {
diff --git a/src/third_party/starboard/rdk/rpi/gyp_configuration.gypi b/src/third_party/starboard/rdk/rpi/gyp_configuration.gypi index ccde9a7..fc0a8c9 100644 --- a/src/third_party/starboard/rdk/rpi/gyp_configuration.gypi +++ b/src/third_party/starboard/rdk/rpi/gyp_configuration.gypi
@@ -84,6 +84,9 @@ # matters: Wall implies Wunused-parameter and Wno-unused-parameter # has no effect if specified before Wall. '-Wno-unused-parameter', + # gcc 9.x throws #if macros definitions as error (warnings as errors) + '-Wno-expansion-to-defined', + '-Wno-implicit-fallthrough', # Specify the sysroot with all your include dependencies. '--sysroot=<(sysroot)', @@ -174,6 +177,10 @@ 'cflags_cc': [ '-std=gnu++11', '-Wno-literal-suffix', + '-Wno-deprecated-copy', + '-Wno-invalid-offsetof', + '-Wno-ignored-qualifiers', + '-Wno-pessimizing-move', ], 'default_configuration': 'rdk-rpi_qa', 'configurations': {