Fix missing prototypes
i3 will now compile with no warnings when -Wmissing-prototypes is used.
This commit is contained in:
@ -2034,7 +2034,7 @@ void cmd_rename_workspace(I3_CMD, const char *old_name, const char *new_name) {
|
||||
* Implementation of 'bar mode dock|hide|invisible|toggle [<bar_id>]'
|
||||
*
|
||||
*/
|
||||
bool cmd_bar_mode(const char *bar_mode, const char *bar_id) {
|
||||
static bool cmd_bar_mode(const char *bar_mode, const char *bar_id) {
|
||||
int mode = M_DOCK;
|
||||
bool toggle = false;
|
||||
if (strcmp(bar_mode, "dock") == 0)
|
||||
@ -2079,7 +2079,7 @@ bool cmd_bar_mode(const char *bar_mode, const char *bar_id) {
|
||||
* Implementation of 'bar hidden_state hide|show|toggle [<bar_id>]'
|
||||
*
|
||||
*/
|
||||
bool cmd_bar_hidden_state(const char *bar_hidden_state, const char *bar_id) {
|
||||
static bool cmd_bar_hidden_state(const char *bar_hidden_state, const char *bar_id) {
|
||||
int hidden_state = S_SHOW;
|
||||
bool toggle = false;
|
||||
if (strcmp(bar_hidden_state, "hide") == 0)
|
||||
|
@ -949,8 +949,8 @@ static void handle_client_message(xcb_client_message_event_t *event) {
|
||||
}
|
||||
}
|
||||
|
||||
bool handle_window_type(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t window,
|
||||
xcb_atom_t atom, xcb_get_property_reply_t *reply) {
|
||||
static bool handle_window_type(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t window,
|
||||
xcb_atom_t atom, xcb_get_property_reply_t *reply) {
|
||||
Con *con;
|
||||
if ((con = con_by_window_id(window)) == NULL || con->window == NULL)
|
||||
return false;
|
||||
|
@ -299,7 +299,7 @@ static void sighandler_handle_key_press(xcb_key_press_event_t *event) {
|
||||
}
|
||||
}
|
||||
|
||||
void handle_signal(int sig, siginfo_t *info, void *data) {
|
||||
static void handle_signal(int sig, siginfo_t *info, void *data) {
|
||||
DLOG("i3 crashed. SIG: %d\n", sig);
|
||||
|
||||
struct sigaction action;
|
||||
|
@ -217,7 +217,7 @@ static char **add_argument(char **original, char *opt_char, char *opt_arg, char
|
||||
#define y(x, ...) yajl_gen_##x(gen, ##__VA_ARGS__)
|
||||
#define ystr(str) yajl_gen_string(gen, (unsigned char *)str, strlen(str))
|
||||
|
||||
char *store_restart_layout(void) {
|
||||
static char *store_restart_layout(void) {
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
yajl_gen gen = yajl_gen_alloc(NULL);
|
||||
|
||||
|
@ -308,7 +308,7 @@ bool workspace_is_visible(Con *ws) {
|
||||
* XXX: we need to clean up all this recursive walking code.
|
||||
*
|
||||
*/
|
||||
Con *_get_sticky(Con *con, const char *sticky_group, Con *exclude) {
|
||||
static Con *_get_sticky(Con *con, const char *sticky_group, Con *exclude) {
|
||||
Con *current;
|
||||
|
||||
TAILQ_FOREACH(current, &(con->nodes_head), nodes) {
|
||||
|
Reference in New Issue
Block a user