* src/basenc.c (finish_and_exit, do_encode, do_decode):
* src/comm.c (compare_files):
* src/tsort.c (tsort):
* src/uptime.c (uptime):
Mark with _Noreturn. Otherwise, unoptimized compilations may warn
that the calling renamed-main function doesn't return a value,
when !lint and when single-binary.
}
}
-static void
+static _Noreturn void
finish_and_exit (FILE *in, char const *infile)
{
if (fclose (in) != 0)
exit (EXIT_SUCCESS);
}
-static void
+static _Noreturn void
do_encode (FILE *in, char const *infile, FILE *out, idx_t wrap_column)
{
idx_t current_column = 0;
finish_and_exit (in, infile);
}
-static void
+static _Noreturn void
do_decode (FILE *in, char const *infile, FILE *out, bool ignore_garbage)
{
char *inbuf, *outbuf;
merge them and output the result.
Exit the program when done. */
-static void
+static _Noreturn void
compare_files (char **infiles)
{
/* For each file, we have four linebuffers in lba. */
/* Do a topological sort on FILE. Exit with appropriate exit status. */
-static void
+static _Noreturn void
tsort (char const *file)
{
bool ok = true;
according to utmp file FILENAME. Use read_utmp OPTIONS to read the
utmp file. */
-static void
+static _Noreturn void
uptime (char const *filename, int options)
{
size_t n_users;