From: Ralf Habacker Date: Thu, 7 Apr 2022 12:54:29 +0000 (+0200) Subject: Ignore gcc 10.3 'inline' warnings: 'call is unlikely and code size would grow' X-Git-Tag: dbus-1.15.0~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b73505869d9dbafd255c182abe867290c4f72e6;p=thirdparty%2Fdbus.git Ignore gcc 10.3 'inline' warnings: 'call is unlikely and code size would grow' As long as gcc does something with compatible semantics, it is up to gcc how to optimize our code. The alternative would be to export the functions in question from the shared library, which has the disadvantage of greatly increasing the number of calls across a shared library boundary. Part-of: https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/275 Reviewed-by: Simon McVittie --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c7fc6f2ae..197b095dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -338,6 +338,7 @@ else() error=null-dereference error=strict-aliasing error=unused-parameter + inline unused-parameter ) set(WARNINGS_ERRORS