diff options
author | Andrew Stitcher <astitcher@apache.org> | 2009-03-02 20:46:16 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2009-03-02 20:46:16 +0000 |
commit | e669e97c7f1c034841986e18288af7629d356aa2 (patch) | |
tree | 8b7e7ea26fc6e8e8bde9dd71bb6e201b567d63fb /cpp/src | |
parent | ecd668842148df98b9e5bbea8fbc88a5f363d42b (diff) | |
download | qpid-python-e669e97c7f1c034841986e18288af7629d356aa2.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/qpid@749432 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/tests/DispatcherTest.cpp | 4 | ||||
-rw-r--r-- | cpp/src/tests/Makefile.am | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/tests/DispatcherTest.cpp b/cpp/src/tests/DispatcherTest.cpp index 8fdc3b9aea..6177e7bd11 100644 --- a/cpp/src/tests/DispatcherTest.cpp +++ b/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); diff --git a/cpp/src/tests/Makefile.am b/cpp/src/tests/Makefile.am index e599b95edd..6b7b6df478 100644 --- a/cpp/src/tests/Makefile.am +++ b/cpp/src/tests/Makefile.am @@ -201,7 +201,6 @@ PollerTest_LDADD=$(lib_common) check_PROGRAMS+=DispatcherTest DispatcherTest_SOURCES=DispatcherTest.cpp DispatcherTest_LDADD=$(lib_common) -DispatcherTest_CXXFLAGS=$(AM_CXXFLAGS) -Wno-missing-field-initializers TESTS_ENVIRONMENT = VALGRIND=$(VALGRIND) srcdir=$(srcdir) QPID_DATA_DIR= BOOST_TEST_SHOW_PROGRESS=yes $(srcdir)/run_test |