You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by sh...@apache.org on 2009/07/13 23:29:20 UTC

svn commit: r793717 - in /qpid/trunk/qpid/cpp/src: qpid/broker/Queue.h tests/CMakeLists.txt

Author: shuston
Date: Mon Jul 13 21:29:20 2009
New Revision: 793717

URL: http://svn.apache.org/viewvc?rev=793717&view=rev
Log:
Add missing externs for Queue methods; silence getenv() warnings on Windows by setting _CRT_NO_SECURE_WARNING

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/Queue.h
    qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/Queue.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/Queue.h?rev=793717&r1=793716&r2=793717&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/Queue.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/Queue.h Mon Jul 13 21:29:20 2009
@@ -203,11 +203,11 @@
              * available it will be dispatched immediately, else it
              * will be returned to the front of the queue.
              */
-            void requeue(const QueuedMessage& msg);
+            QPID_BROKER_EXTERN void requeue(const QueuedMessage& msg);
             /**
              * Used during recovery to add stored messages back to the queue
              */
-            void recover(boost::intrusive_ptr<Message>& msg);
+            QPID_BROKER_EXTERN void recover(boost::intrusive_ptr<Message>& msg);
 
             QPID_BROKER_EXTERN void consume(Consumer::shared_ptr c,
                                             bool exclusive = false);

Modified: qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt?rev=793717&r1=793716&r2=793717&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt (original)
+++ qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt Mon Jul 13 21:29:20 2009
@@ -44,8 +44,10 @@
 # (non dll-interface class used as base for dll-interface class).
 # This is ok, so suppress the warning.
 # Also, boost lengthy names trigger warning 4503, decorated name length exceeded
+# and using getenv() triggers insecure CRT warnings which we can silence in the
+# test environment.
 if (MSVC)
-  add_definitions( /wd4275 /wd4503 )
+  add_definitions( /wd4275 /wd4503 /D_CRT_SECURE_NO_WARNINGS)
 endif (MSVC)
 
 # Like this to work with cmake 2.4 on Unix



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org