Ignore -Woverride-init in event-names.h
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 22 Aug 2013 06:04:40 +0000 (16:04 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 29 Aug 2013 01:36:20 +0000 (11:36 +1000)
commit0309ca0ee59f478313e9029ee732add46300761d
tree1340235d35dce3597a214f3fef24cd72c567cd4c
parenta3e8a240ab7618e11ce77e18957a4b6f308c939b
Ignore -Woverride-init in event-names.h

Having the declarations in the form of [0...EV_MAX] = NULL together
with the actual definitions causes warnings for every true definition if
-Woverride-init is enabled.

We can drop them for most as they're zero, but still need them for
ev_max (which defaults to -1), not zero. So use the GCC pragma to
disable the warnings for this file.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libevdev/make-event-names.py