diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-04-26 17:14:54 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-04-26 18:20:20 -0700 |
commit | 21e757350896da0a42d03e9f9738d54473f74a9f (patch) | |
tree | 119a601219970430ff68b954fe3d157724e9930a /src/csplit.c | |
parent | 6c199713ed384d58e23671f58f646afcf06fabf8 (diff) | |
download | coreutils-21e757350896da0a42d03e9f9738d54473f74a9f.tar.gz |
maint: suppress GCC 13 false alarms
* src/csplit.c, src/fmt.c, src/make-prime-list.c, src/nohup.c:
Add pragmas to pacify GCC 13 when coreutils is configured
with --enable-gcc-warnings='expensive'.
Diffstat (limited to 'src/csplit.c')
-rw-r--r-- | src/csplit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/csplit.c b/src/csplit.c index 09e1468c2..92ea4f96d 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -382,6 +382,13 @@ record_line_starts (struct buffer_record *b) return lines; } +/* Work around <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109614>. */ +#if 13 <= __GNUC__ +# pragma GCC diagnostic ignored "-Wanalyzer-mismatching-deallocation" +# pragma GCC diagnostic ignored "-Wanalyzer-use-after-free" +# pragma GCC diagnostic ignored "-Wanalyzer-use-of-uninitialized-value" +#endif + static void free_buffer (struct buffer_record *buf) { |