diff options
| author | Sam James <sam@gentoo.org> | 2024-08-10 16:43:05 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2024-08-23 10:10:49 +0100 |
| commit | a06f3e823bea0361125a10dd361f6fd50a4041cc (patch) | |
| tree | 771143db9f74132b8e1df49d37f70dbafa4a9386 /src/sql/doc/snippets/code/code.pro | |
| parent | a74b550e2c38679c329cd40d2119ab440668468e (diff) | |
Fix ODR violation for IsFloatType_v
With recent GCC 15 trunk, I started to see:
```
ld: .../kwalletentry.cc.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>';
src/runtime/kwalletd/backend/CMakeFiles/KF6WalletBackend.dir/cbc.cc.o:(.rodata+0x0): first defined here
```
The issue is that constexpr is only implicitly inline for functions or
static data members [0], so the constexpr IsFloatType_v specialization
here causes an ODR violation.
Explicitly mark the specialization as inline constexpr.
[0] http://eel.is/c++draft/dcl.constexpr#1.sentence-3
Fixes: 4b755bc11a8eadd156c65b7474c11e3ce822c6f1
Pick-to: 6.8 6.7
Change-Id: Ie9257138f6d1218ca0a91f5d114aab2483cb275b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/sql/doc/snippets/code/code.pro')
0 files changed, 0 insertions, 0 deletions
