Fixed a few "-Wstrict-prototypes" warnings

This commit is contained in:
Petar Popovic
2025-07-26 19:03:54 +02:00
committed by Sam Lantinga
parent e6d200e51c
commit 2c2c2c5a48
4 changed files with 8 additions and 8 deletions

View File

@@ -161,7 +161,7 @@ typedef enum
typedef struct Quaternion Quaternion;
typedef struct GyroDisplay GyroDisplay;
extern void InitCirclePoints3D();
extern void InitCirclePoints3D(void);
extern GyroDisplay *CreateGyroDisplay(SDL_Renderer *renderer);
extern void SetGyroDisplayArea(GyroDisplay *ctx, const SDL_FRect *area);
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);

View File

@@ -1439,7 +1439,7 @@ static void HandleGamepadGyroEvent(SDL_Event *event)
#define SDL_GAMEPAD_IMU_MIN_POLLING_RATE_ESTIMATION_TIME_NS (SDL_NS_PER_SECOND * 2)
static void EstimatePacketRate()
static void EstimatePacketRate(void)
{
Uint64 now_ns = SDL_GetTicksNS();
if (controller->imu_state->imu_packet_counter == 0) {