X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=xbmc-xrandr.c;h=3c686e20593bab6ee1523d31c3b386b2b084e37a;hb=84ba64d834ae68a4f6290827ec36373557509855;hp=35b5d1afae7bbf432319864ee51c884963f1acd1;hpb=ac5bd3471664841e6b611a4b01a11abac50ee1cd;p=vuplus_xbmc diff --git a/xbmc-xrandr.c b/xbmc-xrandr.c index 35b5d1a..3c686e2 100644 --- a/xbmc-xrandr.c +++ b/xbmc-xrandr.c @@ -39,6 +39,14 @@ #include #include +#ifndef _X_NORETURN +#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205) +#define _X_NORETURN __attribute((noreturn)) +#else +#define _X_NORETURN +#endif +#endif + static char *program_name; static Display *dpy; static Window root; @@ -901,7 +909,6 @@ crtc_can_use_transform (crtc_t *crtc, XTransform *transform) return True; return False; } -#endif /* * Report only rotations that are supported by all crtcs @@ -928,6 +935,7 @@ output_rotations (output_t *output) } return rotation; } +#endif static Bool output_can_use_rotation (output_t *output, Rotation rotation) @@ -2991,7 +2999,7 @@ main (int argc, char **argv) Atom *props; int j, k, nprop; Bool *mode_shown; - Rotation rotations = output_rotations (output); +// Rotation rotations = output_rotations (output); printf (" name, connection[output_info->connection]); if (mode)