Fixed compiler warnings
authorSam Lantinga <slouken@libsdl.org>
Mon, 11 Feb 2013 18:18:34 -0800
changeset 6851 a58fc7ff4a0f
parent 6850 ad3416a14319
child 6852 424a6a791947
Fixed compiler warnings
src/video/x11/SDL_x11opengl.c
src/video/x11/edid-parse.c
--- a/src/video/x11/SDL_x11opengl.c	Mon Feb 11 18:13:52 2013 -0800
+++ b/src/video/x11/SDL_x11opengl.c	Mon Feb 11 18:18:34 2013 -0800
@@ -678,7 +678,7 @@
          * it has the wrong value cached. To work around it, we just run a no-op
          * update to the current value.
          */
-        int currentInterval = _this, X11_GL_GetSwapInterval(_this);
+        int currentInterval = X11_GL_GetSwapInterval(_this);
         _this->gl_data->glXSwapIntervalEXT(display, drawable, currentInterval);
         _this->gl_data->glXSwapIntervalEXT(display, drawable, interval);
 
--- a/src/video/x11/edid-parse.c	Mon Feb 11 18:13:52 2013 -0800
+++ b/src/video/x11/edid-parse.c	Mon Feb 11 18:18:34 2013 -0800
@@ -603,6 +603,7 @@
 	case MDDI: interface = "MDDI"; break;
 	case DISPLAY_PORT: interface = "DisplayPort"; break;
 	case UNDEFINED: interface = "undefined"; break;
+	default: interface = "unknown"; break;
 	}
 	printf ("Interface: %s\n", interface);
 	
@@ -631,6 +632,7 @@
 	case MONOCHROME: s = "monochrome"; break;
 	case RGB: s = "rgb"; break;
 	case OTHER_COLOR: s = "other color"; break;
+	default: s = "unknown"; break;
 	};
 	
 	printf ("Color: %s\n", s);
@@ -731,6 +733,7 @@
 	case TWO_WAY_LEFT_ON_EVEN:  s = "Two-way, Left on Even"; break;
 	case FOUR_WAY_INTERLEAVED:  s = "Four-way Interleaved"; break;
 	case SIDE_BY_SIDE:          s = "Side-by-Side"; break;
+	default:          s = "unknown"; break;
 	}
 	printf ("  Stereo: %s\n", s);