Commit 7aed70f1 authored by Mike Gabriel's avatar Mike Gabriel

hw/nxagent/NXxvdisp.c: Fix compiler warnings: misleading-indentation

NXxvdisp.c: In function 'ProcXvDispatch': NXxvdisp.c:96:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ NXxvdisp.c:99:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' break; ^~~~~ NXxvdisp.c:104:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ NXxvdisp.c:107:10: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' break; ^~~~~ NXxvdisp.c:118:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ NXxvdisp.c:121:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' break; ^~~~~ NXxvdisp.c:126:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ NXxvdisp.c:129:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' break; ^~~~~ NXxvdisp.c:137:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ NXxvdisp.c:140:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' break; ^~~~~ NXxvdisp.c:146:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ NXxvdisp.c:149:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' break; ^~~~~
parent 72152baf
...@@ -95,16 +95,20 @@ ProcXvDispatch(ClientPtr client) ...@@ -95,16 +95,20 @@ ProcXvDispatch(ClientPtr client)
result = (XineramaXvPutVideo(client)); result = (XineramaXvPutVideo(client));
else else
#endif #endif
result = (ProcXvPutVideo(client)); {
break; result = (ProcXvPutVideo(client));
}
break;
case xv_PutStill: case xv_PutStill:
#ifdef PANORAMIX #ifdef PANORAMIX
if(!noPanoramiXExtension) if(!noPanoramiXExtension)
result = (XineramaXvPutStill(client)); result = (XineramaXvPutStill(client));
else else
#endif #endif
result = (ProcXvPutStill(client)); {
break; result = (ProcXvPutStill(client));
}
break;
case xv_GetVideo: result = (ProcXvGetVideo(client)); break; case xv_GetVideo: result = (ProcXvGetVideo(client)); break;
case xv_GetStill: result = (ProcXvGetStill(client)); break; case xv_GetStill: result = (ProcXvGetStill(client)); break;
case xv_GrabPort: result = (ProcXvGrabPort(client)); break; case xv_GrabPort: result = (ProcXvGrabPort(client)); break;
...@@ -117,16 +121,20 @@ ProcXvDispatch(ClientPtr client) ...@@ -117,16 +121,20 @@ ProcXvDispatch(ClientPtr client)
result = (XineramaXvStopVideo(client)); result = (XineramaXvStopVideo(client));
else else
#endif #endif
{
result = (ProcXvStopVideo(client)); result = (ProcXvStopVideo(client));
break; }
break;
case xv_SetPortAttribute: case xv_SetPortAttribute:
#ifdef PANORAMIX #ifdef PANORAMIX
if(!noPanoramiXExtension) if(!noPanoramiXExtension)
result = (XineramaXvSetPortAttribute(client)); result = (XineramaXvSetPortAttribute(client));
else else
#endif #endif
{
result = (ProcXvSetPortAttribute(client)); result = (ProcXvSetPortAttribute(client));
break; }
break;
case xv_GetPortAttribute: result = (ProcXvGetPortAttribute(client)); break; case xv_GetPortAttribute: result = (ProcXvGetPortAttribute(client)); break;
case xv_QueryBestSize: result = (ProcXvQueryBestSize(client)); break; case xv_QueryBestSize: result = (ProcXvQueryBestSize(client)); break;
case xv_QueryPortAttributes: result = (ProcXvQueryPortAttributes(client)); break; case xv_QueryPortAttributes: result = (ProcXvQueryPortAttributes(client)); break;
...@@ -136,8 +144,10 @@ ProcXvDispatch(ClientPtr client) ...@@ -136,8 +144,10 @@ ProcXvDispatch(ClientPtr client)
result = (XineramaXvPutImage(client)); result = (XineramaXvPutImage(client));
else else
#endif #endif
{
result = (ProcXvPutImage(client)); result = (ProcXvPutImage(client));
break; }
break;
#ifdef MITSHM #ifdef MITSHM
case xv_ShmPutImage: case xv_ShmPutImage:
#ifdef PANORAMIX #ifdef PANORAMIX
...@@ -145,8 +155,10 @@ ProcXvDispatch(ClientPtr client) ...@@ -145,8 +155,10 @@ ProcXvDispatch(ClientPtr client)
result = (XineramaXvShmPutImage(client)); result = (XineramaXvShmPutImage(client));
else else
#endif #endif
{
result = (ProcXvShmPutImage(client)); result = (ProcXvShmPutImage(client));
break; }
break;
#endif #endif
case xv_QueryImageAttributes: result = (ProcXvQueryImageAttributes(client)); break; case xv_QueryImageAttributes: result = (ProcXvQueryImageAttributes(client)); break;
case xv_ListImageFormats: result = (ProcXvListImageFormats(client)); break; case xv_ListImageFormats: result = (ProcXvListImageFormats(client)); break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment