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:
parent
c03855be40
commit
08cedb953b
@ -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.
|
||||
|
@ -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: ");
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user