Fixed empty parameter list in signatures of internal functions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346
diff --git a/src/haptic/darwin/SDL_syshaptic.c b/src/haptic/darwin/SDL_syshaptic.c
index d662012..013ae40 100644
--- a/src/haptic/darwin/SDL_syshaptic.c
+++ b/src/haptic/darwin/SDL_syshaptic.c
@@ -189,7 +189,7 @@ SDL_SYS_HapticInit(void)
}
int
-SDL_SYS_NumHaptics()
+SDL_SYS_NumHaptics(void)
{
return numhaptics;
}
diff --git a/src/haptic/linux/SDL_syshaptic.c b/src/haptic/linux/SDL_syshaptic.c
index 7bd9664..ae7f852 100644
--- a/src/haptic/linux/SDL_syshaptic.c
+++ b/src/haptic/linux/SDL_syshaptic.c
@@ -187,7 +187,7 @@ SDL_SYS_HapticInit(void)
}
int
-SDL_SYS_NumHaptics()
+SDL_SYS_NumHaptics(void)
{
return numhaptics;
}
diff --git a/src/haptic/windows/SDL_windowshaptic.c b/src/haptic/windows/SDL_windowshaptic.c
index c6bcba1..9a321c5 100644
--- a/src/haptic/windows/SDL_windowshaptic.c
+++ b/src/haptic/windows/SDL_windowshaptic.c
@@ -98,7 +98,7 @@ SDL_SYS_RemoveHapticDevice(SDL_hapticlist_item *prev, SDL_hapticlist_item *item)
}
int
-SDL_SYS_NumHaptics()
+SDL_SYS_NumHaptics(void)
{
return numhaptics;
}
diff --git a/src/joystick/android/SDL_sysjoystick.c b/src/joystick/android/SDL_sysjoystick.c
index a09e9a1..cbc9210 100644
--- a/src/joystick/android/SDL_sysjoystick.c
+++ b/src/joystick/android/SDL_sysjoystick.c
@@ -363,12 +363,14 @@ SDL_SYS_JoystickInit(void)
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return numjoysticks;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
/* Support for device connect/disconnect is API >= 16 only,
* so we poll every three seconds
diff --git a/src/joystick/bsd/SDL_sysjoystick.c b/src/joystick/bsd/SDL_sysjoystick.c
index ddc899f..d72d22d 100644
--- a/src/joystick/bsd/SDL_sysjoystick.c
+++ b/src/joystick/bsd/SDL_sysjoystick.c
@@ -204,12 +204,14 @@ SDL_SYS_JoystickInit(void)
return (SDL_SYS_numjoysticks);
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return SDL_SYS_numjoysticks;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
}
diff --git a/src/joystick/darwin/SDL_sysjoystick.c b/src/joystick/darwin/SDL_sysjoystick.c
index 5b48b9f..b4a824b 100644
--- a/src/joystick/darwin/SDL_sysjoystick.c
+++ b/src/joystick/darwin/SDL_sysjoystick.c
@@ -580,7 +580,7 @@ SDL_SYS_JoystickInit(void)
/* Function to return the number of joystick devices plugged in right now */
int
-SDL_SYS_NumJoysticks()
+SDL_SYS_NumJoysticks(void)
{
recDevice *device = gpDeviceList;
int nJoySticks = 0;
@@ -598,7 +598,7 @@ SDL_SYS_NumJoysticks()
/* Function to cause any queued joystick insertions to be processed
*/
void
-SDL_SYS_JoystickDetect()
+SDL_SYS_JoystickDetect(void)
{
recDevice *device = gpDeviceList;
while (device) {
diff --git a/src/joystick/dummy/SDL_sysjoystick.c b/src/joystick/dummy/SDL_sysjoystick.c
index 10fda10..edd8bdc 100644
--- a/src/joystick/dummy/SDL_sysjoystick.c
+++ b/src/joystick/dummy/SDL_sysjoystick.c
@@ -37,12 +37,14 @@ SDL_SYS_JoystickInit(void)
return 0;
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return 0;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
}
diff --git a/src/joystick/emscripten/SDL_sysjoystick.c b/src/joystick/emscripten/SDL_sysjoystick.c
index 6b20366..75d88fd 100644
--- a/src/joystick/emscripten/SDL_sysjoystick.c
+++ b/src/joystick/emscripten/SDL_sysjoystick.c
@@ -240,12 +240,14 @@ JoystickByIndex(int index)
return item;
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return numjoysticks;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
}
diff --git a/src/joystick/haiku/SDL_haikujoystick.cc b/src/joystick/haiku/SDL_haikujoystick.cc
index a680189..13bc6c6 100644
--- a/src/joystick/haiku/SDL_haikujoystick.cc
+++ b/src/joystick/haiku/SDL_haikujoystick.cc
@@ -84,12 +84,12 @@ extern "C"
return (SDL_SYS_numjoysticks);
}
- int SDL_SYS_NumJoysticks()
+ int SDL_SYS_NumJoysticks(void)
{
return SDL_SYS_numjoysticks;
}
- void SDL_SYS_JoystickDetect()
+ void SDL_SYS_JoystickDetect(void)
{
}
diff --git a/src/joystick/iphoneos/SDL_sysjoystick.m b/src/joystick/iphoneos/SDL_sysjoystick.m
index eb7e000..893f627 100644
--- a/src/joystick/iphoneos/SDL_sysjoystick.m
+++ b/src/joystick/iphoneos/SDL_sysjoystick.m
@@ -326,12 +326,14 @@ SDL_SYS_JoystickInit(void)
return numjoysticks;
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return numjoysticks;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
}
diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c
index e4f01a3..1621474 100644
--- a/src/joystick/linux/SDL_sysjoystick.c
+++ b/src/joystick/linux/SDL_sysjoystick.c
@@ -348,12 +348,14 @@ SDL_SYS_JoystickInit(void)
#endif
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return numjoysticks;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
#if SDL_USE_LIBUDEV
SDL_UDEV_Poll();
diff --git a/src/joystick/psp/SDL_sysjoystick.c b/src/joystick/psp/SDL_sysjoystick.c
index 352960e..9f3150d 100644
--- a/src/joystick/psp/SDL_sysjoystick.c
+++ b/src/joystick/psp/SDL_sysjoystick.c
@@ -132,12 +132,12 @@ int SDL_SYS_JoystickInit(void)
return 1;
}
-int SDL_SYS_NumJoysticks()
+int SDL_SYS_NumJoysticks(void)
{
return 1;
}
-void SDL_SYS_JoystickDetect()
+void SDL_SYS_JoystickDetect(void)
{
}
diff --git a/src/joystick/windows/SDL_mmjoystick.c b/src/joystick/windows/SDL_mmjoystick.c
index 3746181..e617561 100644
--- a/src/joystick/windows/SDL_mmjoystick.c
+++ b/src/joystick/windows/SDL_mmjoystick.c
@@ -183,12 +183,14 @@ SDL_SYS_JoystickInit(void)
return (SDL_SYS_numjoysticks);
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return SDL_SYS_numjoysticks;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
}
diff --git a/src/joystick/windows/SDL_windowsjoystick.c b/src/joystick/windows/SDL_windowsjoystick.c
index e528afa..f965753 100644
--- a/src/joystick/windows/SDL_windowsjoystick.c
+++ b/src/joystick/windows/SDL_windowsjoystick.c
@@ -307,7 +307,7 @@ SDL_SYS_JoystickInit(void)
/* return the number of joysticks that are connected right now */
int
-SDL_SYS_NumJoysticks()
+SDL_SYS_NumJoysticks(void)
{
int nJoysticks = 0;
JoyStick_DeviceData *device = SYS_Joystick;
@@ -321,7 +321,7 @@ SDL_SYS_NumJoysticks()
/* detect any new joysticks being inserted into the system */
void
-SDL_SYS_JoystickDetect()
+SDL_SYS_JoystickDetect(void)
{
JoyStick_DeviceData *pCurList = NULL;
diff --git a/src/render/opengl/SDL_shaders_gl.c b/src/render/opengl/SDL_shaders_gl.c
index bcf7b43..9eeb051 100644
--- a/src/render/opengl/SDL_shaders_gl.c
+++ b/src/render/opengl/SDL_shaders_gl.c
@@ -369,7 +369,7 @@ DestroyShaderProgram(GL_ShaderContext *ctx, GL_ShaderData *data)
}
GL_ShaderContext *
-GL_CreateShaderContext()
+GL_CreateShaderContext(void)
{
GL_ShaderContext *ctx;
SDL_bool shaders_supported;
diff --git a/src/thread/SDL_thread.c b/src/thread/SDL_thread.c
index ae86579..db7204f 100644
--- a/src/thread/SDL_thread.c
+++ b/src/thread/SDL_thread.c
@@ -121,7 +121,7 @@ static SDL_TLSEntry *SDL_generic_TLS;
SDL_TLSData *
-SDL_Generic_GetTLSData()
+SDL_Generic_GetTLSData(void)
{
SDL_threadID thread = SDL_ThreadID();
SDL_TLSEntry *entry;
diff --git a/src/thread/generic/SDL_systls.c b/src/thread/generic/SDL_systls.c
index e29c198..19dc8a4 100644
--- a/src/thread/generic/SDL_systls.c
+++ b/src/thread/generic/SDL_systls.c
@@ -24,7 +24,7 @@
SDL_TLSData *
-SDL_SYS_GetTLSData()
+SDL_SYS_GetTLSData(void)
{
return SDL_Generic_GetTLSData();
}
diff --git a/src/thread/pthread/SDL_systls.c b/src/thread/pthread/SDL_systls.c
index ba85036..04edc49 100644
--- a/src/thread/pthread/SDL_systls.c
+++ b/src/thread/pthread/SDL_systls.c
@@ -32,7 +32,7 @@ static pthread_key_t thread_local_storage = INVALID_PTHREAD_KEY;
static SDL_bool generic_local_storage = SDL_FALSE;
SDL_TLSData *
-SDL_SYS_GetTLSData()
+SDL_SYS_GetTLSData(void)
{
if (thread_local_storage == INVALID_PTHREAD_KEY && !generic_local_storage) {
static SDL_SpinLock lock;
diff --git a/src/thread/stdcpp/SDL_systhread.cpp b/src/thread/stdcpp/SDL_systhread.cpp
index 6e5ef47..874bdd7 100644
--- a/src/thread/stdcpp/SDL_systhread.cpp
+++ b/src/thread/stdcpp/SDL_systhread.cpp
@@ -153,7 +153,7 @@ SDL_SYS_DetachThread(SDL_Thread * thread)
extern "C"
SDL_TLSData *
-SDL_SYS_GetTLSData()
+SDL_SYS_GetTLSData(void)
{
return SDL_Generic_GetTLSData();
}
diff --git a/src/thread/windows/SDL_systls.c b/src/thread/windows/SDL_systls.c
index 7ec630e..800e94a 100644
--- a/src/thread/windows/SDL_systls.c
+++ b/src/thread/windows/SDL_systls.c
@@ -32,7 +32,7 @@ static DWORD thread_local_storage = TLS_OUT_OF_INDEXES;
static SDL_bool generic_local_storage = SDL_FALSE;
SDL_TLSData *
-SDL_SYS_GetTLSData()
+SDL_SYS_GetTLSData(void)
{
if (thread_local_storage == TLS_OUT_OF_INDEXES && !generic_local_storage) {
static SDL_SpinLock lock;