From 3896b68fc8cf2ae378dae19b6257b26e6bd9ad57 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 2 Oct 2018 21:47:15 +0200 Subject: [PATCH] Move ATTR_NORETURN function declarations closer to the definition --- src/ccache.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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[]) -- 2.47.2