From: Joel Rosdahl Date: Tue, 2 Oct 2018 19:47:15 +0000 (+0200) Subject: Move ATTR_NORETURN function declarations closer to the definition X-Git-Tag: v3.5~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3896b68fc8cf2ae378dae19b6257b26e6bd9ad57;p=thirdparty%2Fccache.git Move ATTR_NORETURN function declarations closer to the definition --- diff --git a/src/ccache.c b/src/ccache.c index 391c05519..9fae59bdd 100644 --- a/src/ccache.c +++ b/src/ccache.c @@ -41,9 +41,6 @@ extern char *current_working_dir; extern char *stats_file; extern unsigned lock_staleness_limit; -static void failed(void) ATTR_NORETURN; -static void ccache(int argc, char *argv[]) ATTR_NORETURN; - static const char VERSION_TEXT[] = MYNAME " version %s\n" "\n" @@ -309,6 +306,9 @@ add_prefix(struct args *args, char *prefix_command) args_free(prefix); } + +static void failed(void) ATTR_NORETURN; + // Something went badly wrong - just execute the real compiler. static void failed(void) @@ -3346,6 +3346,8 @@ configuration_logger(const char *descr, const char *origin, void *context) cc_bulklog("Config: (%s) %s", origin, descr); } +static void ccache(int argc, char *argv[]) ATTR_NORETURN; + // The main ccache driver function. static void ccache(int argc, char *argv[])