* src/chown-core.c, src/comm.c:
* src/tsort.c (record_relation):
Remove GCC 10 pragmas that are not needed in GCC 10.1.0 (the first
public GCC 10 release) and that in some cases cause diagnostics
with GCC 10.1.0. The tsort.c change fixes a bug that was
inadvertantly introduced when these pragmas were added.
/* Extracted from chown.c/chgrp.c and librarified by Jim Meyering. */
-/* GCC 10 gives a false postive warning with -fanalyzer for this. */
-#if (__GNUC__ == 10 && 0 <= __GNUC_MINOR__) || 10 < __GNUC__
-# pragma GCC diagnostic ignored "-Wanalyzer-double-free"
-#endif
-
#include <config.h>
#include <stdio.h>
#include <sys/types.h>
/* Written by Richard Stallman and David MacKenzie. */
-/* GCC 10 gives a false postive warning with -fanalyzer for this. */
-#if (__GNUC__ == 10 && 0 <= __GNUC_MINOR__) || 10 < __GNUC__
-# pragma GCC diagnostic ignored "-Wanalyzer-use-of-uninitialized-value"
-#endif
-
#include <config.h>
#include <getopt.h>
{
struct successor *p;
-/* GCC 10 gives a false postive warning with -fanalyzer for this,
- and an assert did not suppress the warning
- with the initial GCC 10 release. */
-#if (__GNUC__ == 10 && 0 <= __GNUC_MINOR__) || 10 < __GNUC__
-# pragma GCC diagnostic push
-# pragma GCC diagnostic ignored "-Wanalyzer-null-dereference"
if (!STREQ (j->str, k->str))
{
k->count++;
p->next = j->top;
j->top = p;
}
-# pragma GCC diagnostic pop
-#endif
}
static bool