clang is a little more enthusiastic about suggesting these.
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
}
#endif /* DBUS_UNIX */
+static void usage (void) _DBUS_GNUC_NORETURN;
+
static void
usage (void)
{
exit (1);
}
+static void version (void) _DBUS_GNUC_NORETURN;
+
static void
version (void)
{
exit (0);
}
+static void introspect (void) _DBUS_GNUC_NORETURN;
+
static void
introspect (void)
{
#error This file is only relevant for the embedded tests on Unix
#endif
+static void die (const char *failure) _DBUS_GNUC_NORETURN;
+
static void
die (const char *failure)
{
# include <dbus/dbus-sysdeps-unix.h>
#endif
+static void die (const char *failure) _DBUS_GNUC_NORETURN;
+
static void
die (const char *failure)
{
#error This file is only relevant for the embedded tests on Unix
#endif
+static void die (const char *failure) _DBUS_GNUC_NORETURN;
+
static void
die (const char *failure)
{
goto again;
}
+static void write_err_and_exit (int fd, int msg) _DBUS_GNUC_NORETURN;
+
static void
write_err_and_exit (int fd, int msg)
{
do_write (fd, &pid, sizeof (pid));
}
+static void write_status_and_exit (int fd, int status) _DBUS_GNUC_NORETURN;
+
static void
write_status_and_exit (int fd, int status)
{
exit (0);
}
+static void do_exec (int child_err_report_fd,
+ char * const *argv,
+ char * const *envp,
+ DBusSpawnChildSetupFunc child_setup,
+ void *user_data) _DBUS_GNUC_NORETURN;
+
static void
do_exec (int child_err_report_fd,
char * const *argv,
goto again;
}
+static void babysit (pid_t grandchild_pid,
+ int parent_pipe) _DBUS_GNUC_NORETURN;
+
static void
babysit (pid_t grandchild_pid,
int parent_pipe)
#include <stdlib.h>
#ifdef DBUS_ENABLE_EMBEDDED_TESTS
+static void die (const char *failure) _DBUS_GNUC_NORETURN;
+
static void
die (const char *failure)
{
#include <unistd.h>
#endif
+static void die (const char *message) _DBUS_GNUC_NORETURN;
+
static void
die (const char *message)
{
#include <config.h>
#include "../test-utils.h"
+static void die (const char *message,
+ ...) _DBUS_GNUC_NORETURN _DBUS_GNUC_PRINTF (1, 2);
+
static void
die (const char *message, ...)
{
#include <config.h>
#include "../test-utils.h"
+static void die (const char *message,
+ ...) _DBUS_GNUC_NORETURN _DBUS_GNUC_PRINTF (1, 2);
+
static void
die (const char *message, ...)
{
static DBusLoop *loop;
+static void die (const char *message) _DBUS_GNUC_NORETURN;
+
static void
die (const char *message)
{
static DBusLoop *loop;
+static void die (const char *message) _DBUS_GNUC_NORETURN;
+
static void
die (const char *message)
{
}
}
+static void die (const char *message) _DBUS_GNUC_NORETURN;
+
static void
die (const char *message)
{
}
}
+static void die (const char *message) _DBUS_GNUC_NORETURN;
+
static void
die (const char *message)
{
}
#ifdef G_OS_UNIX
+static void wrap_abort (int signal) _DBUS_GNUC_NORETURN;
+
static void
wrap_abort (int signal)
{
return FALSE;
}
+static void die (const char *message) _DBUS_GNUC_NORETURN;
+
static void
die (const char *message)
{
static dbus_bool_t noreply = FALSE;
static dbus_bool_t noread = FALSE;
+static void usage_echo (int exit_with) _DBUS_GNUC_NORETURN;
+
static void
usage_echo (int exit_with)
{
exit (exit_with);
}
+static void usage_black_hole (int exit_with) _DBUS_GNUC_NORETURN;
+
static void
usage_black_hole (int exit_with)
{
#endif /* DBUS_ENABLE_VERBOSE_MODE */
}
+static void usage (int ecode) _DBUS_GNUC_NORETURN;
+
static void
usage (int ecode)
{
exit (ecode);
}
+static void version (void) _DBUS_GNUC_NORETURN;
+
static void
version (void)
{
}
}
+static void kill_bus_when_session_ends (void) _DBUS_GNUC_NORETURN;
+
static void
kill_bus_when_session_ends (void)
{
}
}
}
+ /* not reached */
}
_DBUS_GNUC_NORETURN static void
}
}
+static void pass_info (const char *runprog, const char *bus_address,
+ pid_t bus_pid, long bus_wid, int c_shell_syntax,
+ int bourne_shell_syntax, int binary_syntax,
+ int argc, char **argv,
+ int remaining_args) _DBUS_GNUC_NORETURN;
+
static void
pass_info (const char *runprog, const char *bus_address, pid_t bus_pid,
long bus_wid, int c_shell_syntax, int bourne_shell_syntax,
#define MAX_ADDR_LEN 512
/* defined in dbus-launch.c */
-void verbose (const char *format, ...);
+void verbose (const char *format, ...) _DBUS_GNUC_PRINTF (1, 2);
char *xstrdup (const char *str);
void kill_bus_and_exit (int exitcode) _DBUS_GNUC_NORETURN;
return DBUS_HANDLER_RESULT_HANDLED;
}
+static void usage (char *name, int ecode) _DBUS_GNUC_NORETURN;
+
static void
usage (char *name, int ecode)
{
static const char me[] = "dbus-run-session";
+static void usage (int ecode) _DBUS_GNUC_NORETURN;
+
static void
usage (int ecode)
{
exit (ecode);
}
+static void version (void) _DBUS_GNUC_NORETURN;
+
static void
version (void)
{
exit (0);
}
+static void oom (void) _DBUS_GNUC_NORETURN;
+
static void
oom (void)
{
me, dbus_daemon, strerror (errno));
}
+static void exec_app (int prog_arg, char **argv) _DBUS_GNUC_NORETURN;
+
static void
exec_app (int prog_arg, char **argv)
{
static const char *appname;
+static void usage (int ecode) _DBUS_GNUC_NORETURN;
+
static void
usage (int ecode)
{
static dbus_bool_t ignore_errors = FALSE;
+static void usage (int ecode) _DBUS_GNUC_NORETURN;
+
static void
usage (int ecode)
{
#include <dbus/dbus-uuidgen.h>
#include <dbus/dbus.h>
+static void usage (const char *name, int ecode) _DBUS_GNUC_NORETURN;
+
static void
usage (const char *name,
int ecode)
exit (ecode);
}
+static void version (void) _DBUS_GNUC_NORETURN;
+
static void
version (void)
{