SOURCES: openhpi-gcc43.patch (NEW) - fix for using gcc-4.3 with -Werror ("s...
sls
sls at pld-linux.org
Mon Jul 7 15:35:27 CEST 2008
Author: sls Date: Mon Jul 7 13:35:27 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix for using gcc-4.3 with -Werror ("suggest parentheses" and
"suggest explicit braces")
---- Files affected:
SOURCES:
openhpi-gcc43.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/openhpi-gcc43.patch
diff -u /dev/null SOURCES/openhpi-gcc43.patch:1.1
--- /dev/null Mon Jul 7 15:35:28 2008
+++ SOURCES/openhpi-gcc43.patch Mon Jul 7 15:35:22 2008
@@ -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--;
+
================================================================
More information about the pld-cvs-commit
mailing list