X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=xbmc-xrandr.c;h=3c686e20593bab6ee1523d31c3b386b2b084e37a;hb=636ddf5cd77c5e226f5046b147272b3e3eb9f947;hp=2db9f1e9a216798f8efe5698b6ec1ae7be4e24a8;hpb=c924204d75d511489972cfba24f6dd3bce457a10;p=vuplus_xbmc diff --git a/xbmc-xrandr.c b/xbmc-xrandr.c index 2db9f1e..3c686e2 100644 --- a/xbmc-xrandr.c +++ b/xbmc-xrandr.c @@ -39,10 +39,13 @@ #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; @@ -906,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 @@ -933,6 +935,7 @@ output_rotations (output_t *output) } return rotation; } +#endif static Bool output_can_use_rotation (output_t *output, Rotation rotation) @@ -2996,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)