]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Ignore gcc 10.3 'inline' warnings: 'call is unlikely and code size would grow'
authorRalf Habacker <ralf.habacker@freenet.de>
Thu, 7 Apr 2022 12:54:29 +0000 (14:54 +0200)
committerSimon McVittie <smcv@collabora.com>
Thu, 21 Apr 2022 12:56:26 +0000 (13:56 +0100)
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 <smcv@collabora.com>
CMakeLists.txt

index c7fc6f2aeb3604eace2392baf05e47185f112e2d..197b095ddfe6f75fb4174aeb13409ead9ef3801f 100644 (file)
@@ -338,6 +338,7 @@ else()
         error=null-dereference
         error=strict-aliasing
         error=unused-parameter
+        inline
         unused-parameter
     )
     set(WARNINGS_ERRORS