yet another gcc2 found bad coding practice, move variable declartion to the
top of the scope. this time found by sparc.
This commit is contained in:
parent
b14cbfe250
commit
8b1dd35d69
@ -682,6 +682,7 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
|
||||
MessageType pix24From = X_DEFAULT;
|
||||
Bool pix24Fail = FALSE;
|
||||
Bool autoconfig = FALSE;
|
||||
GDevPtr configured_device
|
||||
|
||||
xf86Initialising = TRUE;
|
||||
|
||||
@ -771,7 +772,7 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
|
||||
/* If there aren't any specified in the config file, autoconfig them */
|
||||
/* FIXME: Does not handle multiple active screen sections, but I'm not
|
||||
* sure if we really want to handle that case*/
|
||||
GDevPtr configured_device = xf86ConfigLayout.screens->screen->device;
|
||||
configured_device = xf86ConfigLayout.screens->screen->device;
|
||||
if ((!configured_device) || (!configured_device->driver)) {
|
||||
if (!autoConfigDevice(configured_device)) {
|
||||
xf86Msg(X_ERROR, "Automatic driver configuration failed\n");
|
||||
|
Loading…
Reference in New Issue
Block a user