Changed C++ style comments to fix pedantic warnings.
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
diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c
index 256a552..3b18d17 100644
--- a/src/core/android/SDL_android.c
+++ b/src/core/android/SDL_android.c
@@ -148,7 +148,7 @@ JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeResize(
Android_SetScreenResolution(width, height, format);
}
-// Paddown
+/* Paddown */
JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_onNativePadDown(
JNIEnv* env, jclass jcls,
jint device_id, jint keycode)
@@ -156,7 +156,7 @@ JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_onNativePadDown(
return Android_OnPadDown(device_id, keycode);
}
-// Padup
+/* Padup */
JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_onNativePadUp(
JNIEnv* env, jclass jcls,
jint device_id, jint keycode)
diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c
index 236b8c5..fa2f878 100644
--- a/src/events/SDL_mouse.c
+++ b/src/events/SDL_mouse.c
@@ -539,7 +539,7 @@ SDL_SetRelativeMouseMode(SDL_bool enabled)
mouse->relative_mode_warp = SDL_TRUE;
} else if (mouse->SetRelativeMouseMode(enabled) < 0) {
if (enabled) {
- // Fall back to warp mode if native relative mode failed
+ /* Fall back to warp mode if native relative mode failed */
mouse->relative_mode_warp = SDL_TRUE;
}
}
diff --git a/test/testdropfile.c b/test/testdropfile.c
index d62c7f0..53821ed 100644
--- a/test/testdropfile.c
+++ b/test/testdropfile.c
@@ -44,7 +44,7 @@ main(int argc, char *argv[])
int consumed;
consumed = SDLTest_CommonArg(state, i);
- // needed vodoo to allow app to launch via OS X Finder
+ /* needed voodoo to allow app to launch via OS X Finder */
if (SDL_strncmp(argv[i], "-psn", 4)==0) {
consumed = 1;
}
diff --git a/test/testgles2.c b/test/testgles2.c
index ef9f38d..c4a62d5 100644
--- a/test/testgles2.c
+++ b/test/testgles2.c
@@ -210,7 +210,7 @@ process_shader(GLuint *shader, const char * source, GLint shader_type)
GL_CHECK(ctx.glCompileShader(*shader));
GL_CHECK(ctx.glGetShaderiv(*shader, GL_COMPILE_STATUS, &status));
- // Dump debug info (source and log) if compilation failed.
+ /* Dump debug info (source and log) if compilation failed. */
if(status != GL_TRUE) {
SDL_Log("Shader compilation failed");
quit(-1);
diff --git a/test/testhotplug.c b/test/testhotplug.c
index 328a8ee..1172ae1 100644
--- a/test/testhotplug.c
+++ b/test/testhotplug.c
@@ -53,7 +53,9 @@ main(int argc, char *argv[])
exit(1);
}
+ /*
//SDL_CreateWindow("Dummy", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 128, 128, 0);
+ */
SDL_Log("There are %d joysticks at startup\n", SDL_NumJoysticks());
if (enable_haptic)