]> git.pld-linux.org Git - packages/openhpi.git/commitdiff
- fix for using gcc-4.3 with -Werror ("suggest parentheses" and
authorSzymon Siwek <sls@pld-linux.org>
Mon, 7 Jul 2008 13:35:22 +0000 (13:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  "suggest explicit braces")

Changed files:
    openhpi-gcc43.patch -> 1.1

openhpi-gcc43.patch [new file with mode: 0644]

diff --git a/openhpi-gcc43.patch b/openhpi-gcc43.patch
new file mode 100644 (file)
index 0000000..0de114d
--- /dev/null
@@ -0,0 +1,39 @@
+--- openhpi-2.10.2/plugins/ipmidirect/ipmi_con_lan.cpp.orig    2008-07-02 15:20:12.588941204 +0200
++++ openhpi-2.10.2/plugins/ipmidirect/ipmi_con_lan.cpp 2008-07-02 15:22:21.580075939 +0200
+@@ -791,7 +791,7 @@
+        tmsg[pos++] = 0x81; // Remote console IPMI Software ID
+        tmsg[pos++] = r->m_seq << 2;
+        tmsg[pos++] = eIpmiCmdSendMsg;
+-       tmsg[pos++] =   r->m_send_addr.m_channel & 0xf
++       tmsg[pos++] = (r->m_send_addr.m_channel & 0xf)
+                      | (1 << 6); // Turn on tracking
+        if ( r->m_send_addr.m_type == eIpmiAddrTypeIpmbBroadcast )
+--- openhpi-2.10.2/plugins/ipmidirect/ipmi_sensor_factors.cpp.orig     2008-07-02 15:25:20.067808883 +0200
++++ openhpi-2.10.2/plugins/ipmidirect/ipmi_sensor_factors.cpp  2008-07-02 15:25:53.065541025 +0200
+@@ -421,10 +421,10 @@
+             // If swap == true, when raw value increases
+             // the corresponding interpreted value decreases
+             // so we have to take that into account when searching
+-            if ( swap == false )
++            if ( swap == false ) {
+                if ((val > cval) && (raw < maxraw))
+                     raw++;
+-            else
++          } else
+                if ((val < cval) && (raw < maxraw))
+                     raw++;
+@@ -434,10 +434,10 @@
+             // If swap == true, when raw value increases
+             // the corresponding interpreted value decreases
+             // so we have to take that into account when searching
+-            if ( swap == false )
++            if ( swap == false ) {
+                 if ( ( val < cval) && (raw > minraw ) )
+                     raw--;
+-            else
++          } else
+                 if ( ( val > cval) && (raw > minraw ) )
+                     raw--;
This page took 0.034051 seconds and 4 git commands to generate.