> > I think I'd prefer using `#pragma GCC diagnostic` around the two > problematic lines to surgically stop the warnings. There's no need to > disable the check for the entirety of wcmISDV4.c, and mucking with the > build system to achive the result seems like using a hammer to drive a > screw. >
This is non-portable and doesn't even work with all versions of gcc. I think I'm going to rewrite the code to not use an array but do this in a function. For an array with two entries this is really no big deal. Then we will have proper argument checking and don't have to deal with non-portable pragmas. Cheers, Egbert. ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel