Am 03.11.2015 um 19:23 schrieb Dmitriy Perlow:
https://build.opensuse.org/package/show/X11:xfce/xfdashboard fails to build for openSUSE:Factory target with such an output: [ 370s] ... running 01-check-debuginfo [ 370s] ... testing for empty debuginfo packages [ 370s] ... running 02-check-gcc-output [ 370s] ... testing for serious compiler warnings [ 370s] (using /usr/lib/build/checks-data/check_gcc_output) [ 370s] (using //.build.log) [ 370s] E: xfdashboard 64bit-portability-issue /usr/include/glib-2.0/glib/gmessages.h:382
the error is: [ 315s] quicklaunch.c: In function '_xfdashboard_quicklaunch_get_actor_for_appinfo': [ 315s] /usr/include/glib-2.0/glib/gmessages.h:382:10: warning: return makes pointer from integer without a cast [-Wint-conversion] [ 315s] return (val); \ [ 315s] ^ [ 315s] quicklaunch.c:161:2: note: in expansion of macro 'g_return_val_if_fail' [ 315s] g_return_val_if_fail(XFDASHBOARD_IS_QUICKLAUNCH(self), TRUE); [ 315s] ^ [ 315s] /usr/include/glib-2.0/glib/gmessages.h:382:10: warning: return makes pointer from integer without a cast [-Wint-conversion] [ 315s] return (val); \ [ 315s] ^ [ 315s] quicklaunch.c:162:2: note: in expansion of macro 'g_return_val_if_fail' [ 315s] g_return_val_if_fail(G_IS_APP_INFO(inAppInfo), TRUE); [ 315s] ^ This is the function:
151 /* Get actor for desktop application information */ 152 static ClutterActor* _xfdashboard_quicklaunch_get_actor_for_appinfo(XfdashboardQuicklaunch *self, 153 GAppInfo *inAppInfo) 154 { 155 XfdashboardQuicklaunchPrivate *priv; 156 ClutterActorIter iter; 157 ClutterActor *child; 158 GAppInfo *desktopAppInfo; 159 GFile *desktopFile; 160 161 g_return_val_if_fail(XFDASHBOARD_IS_QUICKLAUNCH(self), TRUE); 162 g_return_val_if_fail(G_IS_APP_INFO(inAppInfo), TRUE);
Now the "g_return_val_if_fail" macro will return TRUE if the condition is false. But the return value of the function is "ClutterActor*", so maybe returning NULL would be better, but I cannot tell for sure, I'm not familiar with the code. -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org