1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Mark non returning functions

This commit is contained in:
Darshit Shah 2014-06-16 18:25:44 +05:30
parent c03855be40
commit 08cedb953b
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2014-06-16 Darshit Shah <darnir@gmail.com>
* main.c (print_help, print_version): Mark as noreturn.
* utils.c (memfatal, abort_run_with_timout): Same
2014-06-11 Giuseppe Scrivano <gscrivan@redhat.com>
* ftp.c: Replace main() with main in comments.

View File

@ -416,7 +416,7 @@ print_usage (int error)
/* Print the help message, describing all the available options. If
you add an option, be sure to update this list. */
static void
static void _Noreturn
print_help (void)
{
/* We split the help text this way to ease translation of individual
@ -879,7 +879,7 @@ format_and_print_line (const char *prefix, const char *line,
return 0;
}
static void
static void _Noreturn
print_version (void)
{
const char *wgetrc_title = _("Wgetrc: ");

View File

@ -100,7 +100,7 @@ as that of the covered work. */
#include "exits.h"
static void
static void _Noreturn
memfatal (const char *context, long attempted_size)
{
/* Make sure we don't try to store part of the log line, and thus
@ -1896,7 +1896,7 @@ random_float (void)
static sigjmp_buf run_with_timeout_env;
static void
static void _Noreturn
abort_run_with_timeout (int sig)
{
assert (sig == SIGALRM);