build: pacify GCC 13 with -flto

* src/cut.c (cut_file): Explicitly mark STREAM as nonnull to avoid
-Werror=null-dereference.
* src/nl.c (nl_file): Likewise.
This commit is contained in:
Pádraig Brady committed 2023-05-19 11:32:14 +01:00
1 parent ba0527d4ca
commit 76e1200eeb
2 files changed
+4

No files matched your search

+2
View File
@@ -433,6 +433,8 @@ cut_file (char const *file, void (*cut_stream) (FILE *))
}
}
assume (stream);
fadvise (stream, FADVISE_SEQUENTIAL);
cut_stream (stream);
+2
View File
@@ -453,6 +453,8 @@ nl_file (char const *file)
}
}
assume (stream);
fadvise (stream, FADVISE_SEQUENTIAL);
process_file (stream);