summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/DispatcherTest.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-03-02 20:46:16 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-03-02 20:46:16 +0000
commit1552176f75ced7be7a574c6bbd98ef92fd037ca4 (patch)
treeeececf9552f1f07a89fb74129d1e4707e2513873 /qpid/cpp/src/tests/DispatcherTest.cpp
parent1b404573954bc43061a7c302c0e39cba9772a7c9 (diff)
downloadqpid-python-1552176f75ced7be7a574c6bbd98ef92fd037ca4.tar.gz
Remove -Wno-missing-field-initializers which is not supported by gcc3.4
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@749432 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/DispatcherTest.cpp')
-rw-r--r--qpid/cpp/src/tests/DispatcherTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/DispatcherTest.cpp b/qpid/cpp/src/tests/DispatcherTest.cpp
index 8fdc3b9aea..6177e7bd11 100644
--- a/qpid/cpp/src/tests/DispatcherTest.cpp
+++ b/qpid/cpp/src/tests/DispatcherTest.cpp
@@ -170,10 +170,10 @@ int main(int /*argc*/, char** /*argv*/)
rc = ::sigaction(SIGRTMIN, &sa,0);
assert(rc == 0);
- ::sigevent se={};
+ ::sigevent se;
+ ::memset(&se, 0, sizeof(se)); // Clear to make valgrind happy (this *is* the neatest way to do this portably - sigh)
se.sigev_notify = SIGEV_SIGNAL;
se.sigev_signo = SIGRTMIN;
- se.sigev_value.sival_ptr = 0;
rc = ::timer_create(CLOCK_REALTIME, &se, &timer);
assert(rc == 0);