diff options
| author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-17 05:57:49 +0800 |
|---|---|---|
| committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-18 02:06:17 +0800 |
| commit | 080a320914e2026c2d4cfbf91d523b079ae4fc94 (patch) | |
| tree | ce22c7dec897e136fac04dc9b42a2fbbde3f3765 /stdio-common | |
| parent | 54fe008ba66b2575fb1815f3d5e0811a0107a00c (diff) | |
| download | glibc-080a320914e2026c2d4cfbf91d523b079ae4fc94.tar.xz glibc-080a320914e2026c2d4cfbf91d523b079ae4fc94.zip | |
tst-unique3.cc: Add explicit instantiation declaration for S<char>::i
Add explicit instantiation declaration of S<char>::i to silence Clang
error:
tst-unique3.cc:6:18: error: instantiation of variable 'S<char>::i' required here, but no definition is available [-Werror,-Wundefined-var-template]
6 | int t = S<char>::i;
| ^
./tst-unique3.h:5:14: note: forward declaration of template entity is here
5 | static int i;
| ^
tst-unique3.cc:6:18: note: add an explicit instantiation declaration to suppress this warning if 'S<char>::i' is explicitly instantiated in another translation unit
6 | int t = S<char>::i;
| ^
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'stdio-common')
0 files changed, 0 insertions, 0 deletions
