Use strict function prototypes
Fixes clang error: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
This commit is contained in:
4
glfw/dbus_glfw.c
vendored
4
glfw/dbus_glfw.c
vendored
@@ -174,7 +174,7 @@ glfw_dbus_dispatch(DBusConnection *conn) {
|
||||
}
|
||||
|
||||
void
|
||||
glfw_dbus_session_bus_dispatch() {
|
||||
glfw_dbus_session_bus_dispatch(void) {
|
||||
if (session_bus) glfw_dbus_dispatch(session_bus);
|
||||
}
|
||||
|
||||
@@ -344,7 +344,7 @@ glfw_dbus_connect_to_session_bus(void) {
|
||||
}
|
||||
|
||||
DBusConnection *
|
||||
glfw_dbus_session_bus() {
|
||||
glfw_dbus_session_bus(void) {
|
||||
if (!session_bus) glfw_dbus_connect_to_session_bus();
|
||||
return session_bus;
|
||||
}
|
||||
|
||||
4
glfw/wl_window.c
vendored
4
glfw/wl_window.c
vendored
@@ -1952,12 +1952,12 @@ primary_selection_copy_callback_done(void *data, struct wl_callback *callback, u
|
||||
wl_callback_destroy(callback);
|
||||
}
|
||||
|
||||
void _glfwSetupWaylandDataDevice() {
|
||||
void _glfwSetupWaylandDataDevice(void) {
|
||||
_glfw.wl.dataDevice = wl_data_device_manager_get_data_device(_glfw.wl.dataDeviceManager, _glfw.wl.seat);
|
||||
if (_glfw.wl.dataDevice) wl_data_device_add_listener(_glfw.wl.dataDevice, &data_device_listener, NULL);
|
||||
}
|
||||
|
||||
void _glfwSetupWaylandPrimarySelectionDevice() {
|
||||
void _glfwSetupWaylandPrimarySelectionDevice(void) {
|
||||
_glfw.wl.primarySelectionDevice = zwp_primary_selection_device_manager_v1_get_device(_glfw.wl.primarySelectionDeviceManager, _glfw.wl.seat);
|
||||
if (_glfw.wl.primarySelectionDevice) zwp_primary_selection_device_v1_add_listener(_glfw.wl.primarySelectionDevice, &primary_selection_device_listener, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user