]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Move ATTR_NORETURN function declarations closer to the definition
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 2 Oct 2018 19:47:15 +0000 (21:47 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 2 Oct 2018 19:48:43 +0000 (21:48 +0200)
src/ccache.c

index 391c0551999d75a8918ee00c6355876845d7aff2..9fae59bdd46eb83dff7fc7392d52af5aee8d2b41 100644 (file)
@@ -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[])