File gcal-3.01-gcc_twice_variable_use.patch of Package gcal

--- gcal-3.01/src/rc-check.c.orig	2000-06-14 03:00:01.000000000 +0200
+++ gcal-3.01/src/rc-check.c	2007-01-16 17:50:19.000000000 +0100
@@ -1000,7 +1000,10 @@
                   /*
                      Swap the starting date of the event.
                   */
-                  i ^= (j ^= (i ^= j));
+		  int swap;
+		  swap = i;
+		  i = j;
+		  j = swap;
                   d = tmp_d;
                   m = tmp_m;
                   y = tmp_y;
--- gcal-3.01/src/rc-use.c.orig	2000-06-21 03:00:01.000000000 +0200
+++ gcal-3.01/src/rc-use.c	2007-01-16 17:49:54.000000000 +0100
@@ -1028,7 +1028,12 @@
       */
       if (   swap_flag
           || rc_backwards_flag)
-        day ^= (ed ^= (day ^= ed));
+	{
+	  int swap;
+	  swap = ed;
+	  ed = day;
+	  day = swap;
+	}
       /*
          Correction in case date occurs during Gregorian Reformation period.
       */
openSUSE Build Service is sponsored by