This is too much of a pain, anyone who includes XI headers needs to define this. And that affects input and output drivers as well as legacy clients that don't even need the new stuff.
Removing the need for defines would be enough but then the warnings clog up the output and hide real warnings. Just ditch them and laugh at those that use an experimental branch and expect it to work. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- XI2.h | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/XI2.h b/XI2.h index 5a8afb7..4368006 100644 --- a/XI2.h +++ b/XI2.h @@ -25,16 +25,6 @@ #ifndef _XI2_H_ #define _XI2_H_ -#warning "XI 2.1 is not stable yet." -#warning "Applications relying on this header will break as the protocol sees updates." -#ifndef XINPUT2_1_USE_UNSTABLE_PROTOCOL -#error "Define XINPUT2_1_USE_UNSTABLE_PROTOCOL to disable this error" -#endif -#warning "XI 2.2 is not stable yet." -#warning "Applications relying on this header will break as the protocol sees updates." -#ifndef XINPUT2_2_USE_UNSTABLE_PROTOCOL -#error "Define XINPUT2_2_USE_UNSTABLE_PROTOCOL to disable this error" -#endif #define XInput_2_0 7 /* DO NOT ADD TO THIS LIST. These are libXi-specific defines. See commit libXi-1.4.2-21-ge8531dd */ -- 1.7.7.1 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel