Use (void) instead of () for functions without args (Thanks fernandotcl)
See also:
http://article.gmane.org/gmane.linux.kernel/1268792
The C compiler will handle (void) as "no arguments" and () as "variadic
function" (equivalent to (...)) which might lead to subtle errors, such
as the one which was fixed with commit 0ea64ae4
.
This commit is contained in:
@ -277,7 +277,7 @@ void load_configuration(xcb_connection_t *conn, const char *override_configfile,
|
||||
* Translates keysymbols to keycodes for all bindings which use keysyms.
|
||||
*
|
||||
*/
|
||||
void translate_keysyms();
|
||||
void translate_keysyms(void);
|
||||
|
||||
/**
|
||||
* Ungrabs all keys, to be called before re-grabbing the keys because of a
|
||||
|
@ -17,7 +17,7 @@
|
||||
* and _NET_NUMBER_OF_DESKTOPS - 1.
|
||||
*
|
||||
*/
|
||||
void ewmh_update_current_desktop();
|
||||
void ewmh_update_current_desktop(void);
|
||||
|
||||
/**
|
||||
* Updates _NET_ACTIVE_WINDOW with the currently focused window.
|
||||
@ -44,6 +44,6 @@ void ewmh_update_client_list_stacking(xcb_window_t *stack, int num_windows);
|
||||
* Set up the EWMH hints on the root window.
|
||||
*
|
||||
*/
|
||||
void ewmh_setup_hints();
|
||||
void ewmh_setup_hints(void);
|
||||
|
||||
#endif
|
||||
|
@ -43,7 +43,7 @@ void handle_event(int type, xcb_generic_event_t *event);
|
||||
* received from X11
|
||||
*
|
||||
*/
|
||||
void property_handlers_init();
|
||||
void property_handlers_init(void);
|
||||
|
||||
#if 0
|
||||
/**
|
||||
|
@ -78,7 +78,7 @@ void ipc_send_event(const char *event, uint32_t message_type, const char *payloa
|
||||
* when exiting or restarting only!
|
||||
*
|
||||
*/
|
||||
void ipc_shutdown();
|
||||
void ipc_shutdown(void);
|
||||
|
||||
void dump_node(yajl_gen gen, Con *con, bool inplace_restart);
|
||||
|
||||
|
@ -197,7 +197,7 @@ void set_font(i3Font *font);
|
||||
* Frees the resources taken by the current font.
|
||||
*
|
||||
*/
|
||||
void free_font();
|
||||
void free_font(void);
|
||||
|
||||
/**
|
||||
* Converts the given string to UTF-8 from UCS-2 big endian. The return value
|
||||
|
@ -29,7 +29,7 @@ extern int shmlog_size;
|
||||
* XDG_RUNTIME_DIR, see get_process_filename()).
|
||||
*
|
||||
*/
|
||||
void init_logging();
|
||||
void init_logging(void);
|
||||
|
||||
/**
|
||||
* Enables the given loglevel.
|
||||
|
@ -27,7 +27,7 @@ void manage_existing_windows(xcb_window_t root);
|
||||
* side-effects which are to be expected when continuing to run i3.
|
||||
*
|
||||
*/
|
||||
void restore_geometry();
|
||||
void restore_geometry(void);
|
||||
|
||||
/**
|
||||
* Do some sanity checks and then reparent the window.
|
||||
|
@ -61,13 +61,13 @@ void init_ws_for_output(Output *output, Con *content);
|
||||
* (Re-)queries the outputs via RandR and stores them in the list of outputs.
|
||||
*
|
||||
*/
|
||||
void randr_query_outputs();
|
||||
void randr_query_outputs(void);
|
||||
|
||||
/**
|
||||
* Returns the first output which is active.
|
||||
*
|
||||
*/
|
||||
Output *get_first_output();
|
||||
Output *get_first_output(void);
|
||||
|
||||
/**
|
||||
* Returns the output with the given name if it is active (!) or NULL.
|
||||
|
@ -16,6 +16,6 @@
|
||||
* Setup signal handlers to safely handle SIGSEGV and SIGFPE
|
||||
*
|
||||
*/
|
||||
void setup_signal_handler();
|
||||
void setup_signal_handler(void);
|
||||
|
||||
#endif
|
||||
|
@ -42,20 +42,20 @@ void tree_split(Con *con, orientation_t orientation);
|
||||
* Moves focus one level up.
|
||||
*
|
||||
*/
|
||||
void level_up();
|
||||
void level_up(void);
|
||||
|
||||
/**
|
||||
* Moves focus one level down.
|
||||
*
|
||||
*/
|
||||
void level_down();
|
||||
void level_down(void);
|
||||
|
||||
/**
|
||||
* Renders the tree, that is rendering all outputs using render_con() and
|
||||
* pushing the changes to X11 using x_push_changes().
|
||||
*
|
||||
*/
|
||||
void tree_render();
|
||||
void tree_render(void);
|
||||
|
||||
/**
|
||||
* Closes the current container using tree_close().
|
||||
|
@ -69,31 +69,31 @@ void workspace_show_by_name(const char *num);
|
||||
* Returns the next workspace.
|
||||
*
|
||||
*/
|
||||
Con* workspace_next();
|
||||
Con* workspace_next(void);
|
||||
|
||||
/**
|
||||
* Returns the previous workspace.
|
||||
*
|
||||
*/
|
||||
Con* workspace_prev();
|
||||
Con* workspace_prev(void);
|
||||
|
||||
/**
|
||||
* Returns the next workspace on the same output
|
||||
*
|
||||
*/
|
||||
Con* workspace_next_on_output();
|
||||
Con* workspace_next_on_output(void);
|
||||
|
||||
/**
|
||||
* Returns the previous workspace on the same output
|
||||
*
|
||||
*/
|
||||
Con* workspace_prev_on_output();
|
||||
Con* workspace_prev_on_output(void);
|
||||
|
||||
/**
|
||||
* Focuses the previously focused workspace.
|
||||
*
|
||||
*/
|
||||
void workspace_back_and_forth();
|
||||
void workspace_back_and_forth(void);
|
||||
|
||||
|
||||
#if 0
|
||||
|
@ -108,7 +108,7 @@ void x_set_name(Con *con, const char *name);
|
||||
* Sets up i3 specific atoms (I3_SOCKET_PATH and I3_CONFIG_PATH)
|
||||
*
|
||||
*/
|
||||
void x_set_i3_atoms();
|
||||
void x_set_i3_atoms(void);
|
||||
|
||||
/**
|
||||
* Set warp_to coordinates. This will trigger on the next call to
|
||||
|
@ -20,7 +20,7 @@ enum xcursor_cursor_t {
|
||||
XCURSOR_CURSOR_MAX
|
||||
};
|
||||
|
||||
void xcursor_load_cursors();
|
||||
void xcursor_load_cursors(void);
|
||||
Cursor xcursor_get_cursor(enum xcursor_cursor_t c);
|
||||
int xcursor_get_xcb_cursor(enum xcursor_cursor_t c);
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
* Xinerama information to setup workspaces for each screen.
|
||||
*
|
||||
*/
|
||||
void xinerama_init();
|
||||
void xinerama_init(void);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user