]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
* buffer.c: work around GCC bug 109856
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 Jun 2023 23:34:19 +0000 (16:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 17 Jun 2023 00:12:39 +0000 (17:12 -0700)
src/buffer.c

index a929138f82d1eb774da764ea4ccd739e7e0bc27e..b19d51de830bb05a805a58db5e5f770229a0f4c4 100644 (file)
 #include "common.h"
 #include <rmt.h>
 
+/* Work around GCC bug 109856.  */
+# if 13 <= __GNUC__
+#  pragma GCC diagnostic ignored "-Wnull-dereference"
+# endif
+
 /* Number of retries before giving up on read.  */
 #define READ_ERROR_MAX 10