GNOME Bugzilla – Bug 675872
Constification of libwacom_get_styli() returned value
Last modified: 2012-05-17 17:31:54 UTC
Created attachment 213866 [details] [review] Proposed patch (trivial) A recent API change in libwacom (commit 715ac982 [1]) changed the returned value from libwacom_get_styli() to const int, causing a warning in g-s-d at build time: gsd-wacom-device.c:1135:7: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Trivial patch attached. [1] http://linuxwacom.git.sourceforge.net/git/gitweb.cgi?p=linuxwacom/libwacom;a=commit;h=715ac982
Note: same needs to be done in gnome-control-center, with "make update-from-gsd"
(In reply to comment #0) > Created an attachment (id=213866) [details] [review] > Proposed patch (trivial) > > A recent API change in libwacom (commit 715ac982 [1]) changed the returned > value from libwacom_get_styli() to const int, causing a warning in g-s-d at > build time: > > gsd-wacom-device.c:1135:7: warning: assignment discards 'const' qualifier > from pointer target type [enabled by default] If the change is new, you need to bump the requirements in configure.ac so that we don't get warnings reported with old versions.