зеркало из https://github.com/Azure/qpid-proton.git
NO-JIRA: Fix compile error on gcc
Tested on (g++, clang++) * (c++11, c++03) and "Visual Studo 9 2008"
This commit is contained in:
Родитель
c7822d609a
Коммит
fa784b1f3c
|
@ -242,6 +242,12 @@ if (CMAKE_COMPILER_IS_GNUCC)
|
|||
endif (ENABLE_UNDEFINED_ERROR)
|
||||
endif (CMAKE_COMPILER_IS_GNUCC)
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
if (ENABLE_WARNING_ERROR)
|
||||
set (WERROR "-Werror")
|
||||
endif (ENABLE_WARNING_ERROR)
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
set(CMAKE_DEBUG_POSTFIX "d")
|
||||
add_definitions(
|
||||
|
|
|
@ -129,8 +129,6 @@ class message
|
|||
/// Decode the message from link corresponding to delivery.
|
||||
PN_CPP_EXTERN void decode(proton::link&, proton::delivery&);
|
||||
|
||||
PN_CPP_EXTERN void operator delete(void*);
|
||||
|
||||
private:
|
||||
pn_message_t *message_;
|
||||
};
|
||||
|
|
|
@ -46,7 +46,7 @@ struct connection_context : public counted {
|
|||
|
||||
pn_unique_ptr<class handler> handler;
|
||||
session* default_session; // Owned by connection
|
||||
container_impl* container_impl;
|
||||
class container_impl* container_impl;
|
||||
message event_message; // re-used by messaging_adapter for performance
|
||||
};
|
||||
|
||||
|
|
|
@ -45,12 +45,6 @@ void test_counted() {
|
|||
session_ptr p2 = s.ptr();
|
||||
}
|
||||
|
||||
void test_auto() {
|
||||
std::auto_ptr<connection> conn(connection::cast(pn_connection()));
|
||||
session& s = conn->default_session();
|
||||
std::auto_ptr<session> p(s.ptr().release());
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
int failed = 0;
|
||||
failed += run_test(&test_counted<counted_ptr<connection>,
|
||||
|
|
Загрузка…
Ссылка в новой задаче