* tests/test-setlocale1.c (main): Assert that each strcmp argument is
non-NULL, since we don't bother handing strdup failure.
2020-11-25 Jim Meyering <meyering@fb.com>
+ setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
+ * tests/test-setlocale1.c (main): Assert that each strcmp argument is
+ non-NULL, since we don't bother handing strdup failure.
+
raise-tests: avoid GCC 11's new exit-from-signal-handler warning
gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
* tests/test-raise.c: Include unistd.h.
name2 = strdup (setlocale (LC_ALL, NULL));
+ ASSERT (name1);
+ ASSERT (name2);
+
/* Test that the two results are the same. */
ASSERT (strcmp (name1, name2) == 0);
free (name1);