Pacify GCC 11.1.1
20210531 (Red Hat 11.1.1-3) x86-64.
* tests/test-memrchr.c: Disable -Wmaybe-uninitialized.
2021-07-17 Paul Eggert <eggert@cs.ucla.edu>
+ memrchr-tests: pacify GCC
+ Pacify GCC 11.1.1 20210531 (Red Hat 11.1.1-3) x86-64.
+ * tests/test-memrchr.c: Disable -Wmaybe-uninitialized.
+
explicit_bzero-tests: pacify GCC
Redo to pacify -Wmaybe-uninitialized with
GCC 11.1.1 20210531 (Red Hat 11.1.1-3) x86-64.
#include "zerosize-ptr.h"
#include "macros.h"
+/* Work around GCC bug 101494. */
+#if 4 < __GNUC__ + (3 <= __GNUC_MINOR__)
+# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+#endif
+
/* Calculating void * + int is not portable, so this wrapper converts
to char * to make the tests easier to write. */
#define MEMRCHR (char *) memrchr