diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-03-25 11:17:39 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-02-09 16:36:05 -0300 |
commit | 32a7c337afc280606a3e4f6aa870288132aacaa0 (patch) | |
tree | 6bea92a5380c32c6f9d8d16ab45bd59e41cab467 | |
parent | 7c1a2e6cd25b900711991f2175432d9713db72fa (diff) | |
download | glibc-32a7c337afc280606a3e4f6aa870288132aacaa0.tar.gz |
elf: Suppress clang warning on tst-unique3
clang warns that the instatiation of the variable is required,
but no definition is available. They are implemented on
tst-unique3lib.so.
Checked on x86_64-linux-gnu.
-rw-r--r-- | elf/tst-unique3.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/elf/tst-unique3.cc b/elf/tst-unique3.cc index efdd6d78c2..d07601fe6d 100644 --- a/elf/tst-unique3.cc +++ b/elf/tst-unique3.cc @@ -1,9 +1,14 @@ -#include "tst-unique3.h" - #include <cstdio> -#include "../dlfcn/dlfcn.h" +#include <dlfcn.h> +#include <libc-diag.h> +#include "tst-unique3.h" +/* clang warns that the instatiation of the variable is required, but no + definition is available. They are implemented on tst-unique3lib.so. */ +DIAG_PUSH_NEEDS_COMMENT_CLANG; +DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wundefined-var-template"); int t = S<char>::i; +DIAG_POP_NEEDS_COMMENT_CLANG; int main (void) |