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:
jsdelfino 2013-08-26 05:18:15 +00:00
parent 8603a54631
commit 91c4354f61
6 changed files with 8 additions and 8 deletions

View file

@ -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);

View file

@ -74,7 +74,7 @@ public:
}
private:
const bool owner;
unused const bool owner;
const string name;
const string format;

View file

@ -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])

View file

@ -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;

View file

@ -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) {

View file

@ -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