summaryrefslogtreecommitdiff
path: root/cpp/src
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
commitd224655573a8558c57f05921f7b1ea1fdd77c490 (patch)
treeba0251629c0d4a3a847f0e4346d27832aaad7e2e /cpp/src
parent015c589b44da40867fe08a86c5dd3c8b7c75aae8 (diff)
downloadqpid-python-d224655573a8558c57f05921f7b1ea1fdd77c490.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')
-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"