Fix build errors with latest GCC and CLang compilers.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1517422 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8603a54631
commit
91c4354f61
6 changed files with 8 additions and 8 deletions
2
sca-cpp/trunk/components/cache/memcache.hpp
vendored
2
sca-cpp/trunk/components/cache/memcache.hpp
vendored
|
@ -68,7 +68,7 @@ public:
|
|||
|
||||
private:
|
||||
const gc_child_pool p;
|
||||
const bool owner;
|
||||
unused const bool owner;
|
||||
apr_memcache_t* const mc;
|
||||
|
||||
friend const failable<bool> post(const value& key, const value& val, const MemCached& cache);
|
||||
|
|
|
@ -74,7 +74,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
const bool owner;
|
||||
unused const bool owner;
|
||||
const string name;
|
||||
const string format;
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ if test "${want_maintainer_mode}" = "true"; then
|
|||
if test "${cxxtype}" = "clang"; then
|
||||
cxxflags="${cxxflags} -O1 -stdlib=libc++ -Qunused-arguments -Wno-return-type-c-linkage"
|
||||
else
|
||||
cxxflags="${cxxflags} -O2 -Wlogical-op -Wconversion"
|
||||
cxxflags="${cxxflags} -O2 -Wlogical-op -Wconversion -Wno-attributes"
|
||||
fi
|
||||
AM_CONDITIONAL([WANT_MAINTAINER_MODE], true)
|
||||
AC_DEFINE([WANT_MAINTAINER_MODE], 1, [compile with debugging and compile-time warnings])
|
||||
|
|
|
@ -325,7 +325,7 @@ public:
|
|||
gc_child_pool& operator=(const gc_child_pool& p) = delete;
|
||||
|
||||
private:
|
||||
const bool owner;
|
||||
unused const bool owner;
|
||||
|
||||
inline apr_pool_t* const mkpool() noexcept {
|
||||
apr_pool_t* p;
|
||||
|
|
|
@ -67,7 +67,7 @@ private:
|
|||
friend ostream& operator<<(ostream& out, const Element& v);
|
||||
|
||||
const int i;
|
||||
char c[20];
|
||||
unused char c[20];
|
||||
};
|
||||
|
||||
ostream& operator<<(ostream& out, const Element& v) {
|
||||
|
|
|
@ -141,7 +141,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
const bool owner;
|
||||
unused const bool owner;
|
||||
#ifdef WANT_THREADS
|
||||
pthread_mutex_t mutex;
|
||||
pthread_mutex_t pidmutex;
|
||||
|
@ -272,7 +272,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
PythonRuntime* const py;
|
||||
unused PythonRuntime* const py;
|
||||
#ifdef WANT_THREADS
|
||||
PyGILState_STATE gstate;
|
||||
#endif
|
||||
|
@ -300,7 +300,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
PythonRuntime* const py;
|
||||
unused PythonRuntime* const py;
|
||||
#ifdef WANT_THREADS
|
||||
PyThreadState* tstate;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue