Keyboard Plugin doesn't build under FC5

Biju Chacko botsie at xfce.org
Tue May 23 16:38:31 CEST 2006


Hi,

Due to some gcc 4.1 wierdness the keyboard plugin build dies with the 
following error:

cc1: warnings being treated as errors
shortcuts_plugin.c: In function 'cb_compose_shortcut':
shortcuts_plugin.c:1004: warning: value computed is not used
make[3]: *** [keyboard_plugin_la-shortcuts_plugin.lo] Error 1

The attached patch fixes it for me.

-- b
-------------- next part --------------
--- shortcuts_plugin.c	2006-05-23 19:57:54.000000000 +0530
+++ shortcuts_plugin.c.fixed	2006-05-23 19:59:54.000000000 +0530
@@ -1001,7 +1001,7 @@
             strcat (shortcut_string, *current_shortcut);
             strcat (shortcut_string, "+");
         }
-        *current_shortcut++;
+        *current_shortcut = *current_shortcut + 1;
     }
 
     shortcut_string[strlen (shortcut_string) - 1] = '\0';       /* replace the trailing '+' */


More information about the Xfce4-dev mailing list