summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/SocketTransport.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2013-04-10 18:46:12 +0000
committerAndrew Stitcher <astitcher@apache.org>2013-04-10 18:46:12 +0000
commit383db31e7b327ef886334aabd202066f267b8666 (patch)
treeba0251629c0d4a3a847f0e4346d27832aaad7e2e /cpp/src/qpid/sys/SocketTransport.cpp
parentaff56775024dc159246256ae5f99a25367ffb964 (diff)
downloadqpid-python-383db31e7b327ef886334aabd202066f267b8666.tar.gz
QPID-4734: Release builds fail on GCC 4.4.7 / Boost 1.41
Use pragma to turn off unavoidable unitialised variable warning under gcc on RHEL6 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1466615 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/SocketTransport.cpp')
-rw-r--r--cpp/src/qpid/sys/SocketTransport.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/SocketTransport.cpp b/cpp/src/qpid/sys/SocketTransport.cpp
index 091851713e..cf0770f4ee 100644
--- a/cpp/src/qpid/sys/SocketTransport.cpp
+++ b/cpp/src/qpid/sys/SocketTransport.cpp
@@ -18,6 +18,11 @@
* under the License.
*
*/
+// Turn off unintialised warnings as errors when compiling under Red Enterprise Linux 6
+// as an unitialised variable warning is unavoidable there.
+#if __GNUC__ == 4 && __GNUC_MINOR__ == 4 && __GNUC_PATCHLEVEL__ == 7
+#pragma GCC diagnostic warning "-Wuninitialized"
+#endif
#include "qpid/sys/SocketTransport.h"