]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Work around GCC bug 106436
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 25 Jul 2022 16:41:49 +0000 (09:41 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 25 Jul 2022 16:44:00 +0000 (09:44 -0700)
* src/tar.c (optloc_eq): Use ‘assume’ to pacify GCC bug.

src/tar.c

index d48984680a8091601fd841f62b8604e384588c2a..002519bcbf4eb3f6d590221dbd85830c251ed347 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -959,6 +959,7 @@ option_set_in_cl (int id)
 static int
 optloc_eq (struct option_locus *a, struct option_locus *b)
 {
+  assume (a);  /* Pacify GCC bug 106436.  */
   if (a->source != b->source)
     return 0;
   if (a->source == OPTS_COMMAND_LINE)