Skip to content

Commit 2c2c2c5

Browse files
Sackzementslouken
authored andcommitted
Fixed a few "-Wstrict-prototypes" warnings
1 parent e6d200e commit 2c2c2c5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/audio/alsa/SDL_alsa_audio.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ static void ALSA_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, c
14701470
}
14711471
}
14721472

1473-
static bool ALSA_start_udev()
1473+
static bool ALSA_start_udev(void)
14741474
{
14751475
udev_initialized = SDL_UDEV_Init();
14761476
if (udev_initialized) {
@@ -1483,7 +1483,7 @@ static bool ALSA_start_udev()
14831483
return udev_initialized;
14841484
}
14851485

1486-
static void ALSA_stop_udev()
1486+
static void ALSA_stop_udev(void)
14871487
{
14881488
if (udev_initialized) {
14891489
SDL_UDEV_DelCallback(ALSA_udev_callback);
@@ -1494,12 +1494,12 @@ static void ALSA_stop_udev()
14941494

14951495
#else
14961496

1497-
static bool ALSA_start_udev()
1497+
static bool ALSA_start_udev(void)
14981498
{
14991499
return false;
15001500
}
15011501

1502-
static void ALSA_stop_udev()
1502+
static void ALSA_stop_udev(void)
15031503
{
15041504
}
15051505

src/core/linux/SDL_progressbar.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#define UnityLauncherAPI_DBUS_INTERFACE "com.canonical.Unity.LauncherEntry"
3333
#define UnityLauncherAPI_DBUS_SIGNAL "Update"
3434

35-
static char *GetDBUSObjectPath()
35+
static char *GetDBUSObjectPath(void)
3636
{
3737
char *app_id = SDL_strdup(SDL_GetAppID());
3838

@@ -62,7 +62,7 @@ static char *GetDBUSObjectPath()
6262
return SDL_strdup(path);
6363
}
6464

65-
static char *GetAppDesktopPath()
65+
static char *GetAppDesktopPath(void)
6666
{
6767
const char *desktop_suffix = ".desktop";
6868
const char *app_id = SDL_GetAppID();

test/gamepadutils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ typedef enum
161161
typedef struct Quaternion Quaternion;
162162
typedef struct GyroDisplay GyroDisplay;
163163

164-
extern void InitCirclePoints3D();
164+
extern void InitCirclePoints3D(void);
165165
extern GyroDisplay *CreateGyroDisplay(SDL_Renderer *renderer);
166166
extern void SetGyroDisplayArea(GyroDisplay *ctx, const SDL_FRect *area);
167167
extern void SetGamepadDisplayIMUValues(GyroDisplay *ctx, float *gyro_drift_solution, float *euler_displacement_angles, Quaternion *gyro_quaternion, int reported_senor_rate_hz, int estimated_sensor_rate_hz, EGyroCalibrationPhase calibration_phase, float drift_calibration_progress_frac, float accelerometer_noise_sq, float accelerometer_noise_tolerance_sq);

test/testcontroller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ static void HandleGamepadGyroEvent(SDL_Event *event)
14391439
#define SDL_GAMEPAD_IMU_MIN_POLLING_RATE_ESTIMATION_TIME_NS (SDL_NS_PER_SECOND * 2)
14401440

14411441

1442-
static void EstimatePacketRate()
1442+
static void EstimatePacketRate(void)
14431443
{
14441444
Uint64 now_ns = SDL_GetTicksNS();
14451445
if (controller->imu_state->imu_packet_counter == 0) {

0 commit comments

Comments
 (0)