Fixed compiler warnings
authorSam Lantinga
Mon, 11 Feb 2013 18:18:34 -0800
changeset 6851a58fc7ff4a0f
parent 6850 ad3416a14319
child 6852 424a6a791947
Fixed compiler warnings
src/video/x11/SDL_x11opengl.c
src/video/x11/edid-parse.c
     1.1 --- a/src/video/x11/SDL_x11opengl.c	Mon Feb 11 18:13:52 2013 -0800
     1.2 +++ b/src/video/x11/SDL_x11opengl.c	Mon Feb 11 18:18:34 2013 -0800
     1.3 @@ -678,7 +678,7 @@
     1.4           * it has the wrong value cached. To work around it, we just run a no-op
     1.5           * update to the current value.
     1.6           */
     1.7 -        int currentInterval = _this, X11_GL_GetSwapInterval(_this);
     1.8 +        int currentInterval = X11_GL_GetSwapInterval(_this);
     1.9          _this->gl_data->glXSwapIntervalEXT(display, drawable, currentInterval);
    1.10          _this->gl_data->glXSwapIntervalEXT(display, drawable, interval);
    1.11  
     2.1 --- a/src/video/x11/edid-parse.c	Mon Feb 11 18:13:52 2013 -0800
     2.2 +++ b/src/video/x11/edid-parse.c	Mon Feb 11 18:18:34 2013 -0800
     2.3 @@ -603,6 +603,7 @@
     2.4  	case MDDI: interface = "MDDI"; break;
     2.5  	case DISPLAY_PORT: interface = "DisplayPort"; break;
     2.6  	case UNDEFINED: interface = "undefined"; break;
     2.7 +	default: interface = "unknown"; break;
     2.8  	}
     2.9  	printf ("Interface: %s\n", interface);
    2.10  	
    2.11 @@ -631,6 +632,7 @@
    2.12  	case MONOCHROME: s = "monochrome"; break;
    2.13  	case RGB: s = "rgb"; break;
    2.14  	case OTHER_COLOR: s = "other color"; break;
    2.15 +	default: s = "unknown"; break;
    2.16  	};
    2.17  	
    2.18  	printf ("Color: %s\n", s);
    2.19 @@ -731,6 +733,7 @@
    2.20  	case TWO_WAY_LEFT_ON_EVEN:  s = "Two-way, Left on Even"; break;
    2.21  	case FOUR_WAY_INTERLEAVED:  s = "Four-way Interleaved"; break;
    2.22  	case SIDE_BY_SIDE:          s = "Side-by-Side"; break;
    2.23 +	default:          s = "unknown"; break;
    2.24  	}
    2.25  	printf ("  Stereo: %s\n", s);
    2.26