diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-04-24 12:06:54 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-04-24 12:07:39 -0700 |
commit | 9e6a37ccc2964c63ebc8491ad0da4d6ac668f2b4 (patch) | |
tree | 763581e166fa6d32f3d5998114ef5d2d48674d18 /tests/test-perror2.c | |
parent | c254399aae1fb663ff9d3038aa4725213afc2cc3 (diff) | |
download | gnulib-9e6a37ccc2964c63ebc8491ad0da4d6ac668f2b4.tar.gz |
tests: suppress some unwanted -fanalyzer checking
* tests/test-dup2.c, tests/test-fcntl.c, tests/test-fopen.h:
* tests/test-getdtablesize.c, tests/test-listen.c:
* tests/test-localename.c, tests/test-open.h, tests/test-perror2.c:
* tests/test-select.h:
Add pragmas to disable unwanted -fanalyzer checking.
Diffstat (limited to 'tests/test-perror2.c')
-rw-r--r-- | tests/test-perror2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-perror2.c b/tests/test-perror2.c index de12480322..0c96832d37 100644 --- a/tests/test-perror2.c +++ b/tests/test-perror2.c @@ -22,6 +22,11 @@ #include <string.h> #include <unistd.h> +/* Tell GCC not to warn about myerr being leaked. */ +#if __GNUC__ >= 10 +# pragma GCC diagnostic ignored "-Wanalyzer-fd-leak" +#endif + /* This test intentionally parses stderr. So, we arrange to have fd 10 (outside the range of interesting fd's during the test) set up to duplicate the original stderr. */ |