[Development] On the use of the inline keyword
Kai Köhne
Kai.Koehne at qt.io
Fri Aug 25 11:28:36 CEST 2023
Not an GCC expert, but this is the code that emits the warning in GCC:
https://github.com/gcc-mirror/gcc/blob/66be6ed81f369573824f1a8f5a3538a63472292f/gcc/attribs.cc#L1818
First argument for warning() is 0 ... which explains why it cannot be easily disabled with say -Wno-ignored-attributes.
I therefore don't see an easy way to disable this specific warning.
Regards
________________________________________
From: Development <development-bounces at qt-project.org> on behalf of Hasselmann Mathias via Development <development at qt-project.org>
Sent: Friday, August 25, 2023 10:34
To: development at qt-project.org
Subject: Re: [Development] On the use of the inline keyword
Am 24.08.2023 um 21:42 schrieb Thiago Macieira:
> That warning looks like a bug in the compiler instead. So if there's no ill-
> effect, I'd just disable and ignore it.
Seems like an easy fix, but breaks user code that explicitly enables
this warning. Guess ignoring is not a good option, if one cares about
user experience.
Ciao
Mathias
--
Development mailing list
Development at qt-project.org
https://lists.qt-project.org/listinfo/development
More information about the Development
mailing list