diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2013-08-26 05:18:15 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2013-08-26 05:18:15 +0000 |
commit | 91c4354f61b14cbdab6a2f1922f4ffca23acaf22 (patch) | |
tree | 4bd4d3259e53cd24930c27a40323acce848b40c8 | |
parent | 8603a54631cbc4201ee4078de1b2bf54bdd4603d (diff) |
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
-rw-r--r-- | sca-cpp/trunk/components/cache/memcache.hpp | 2 | ||||
-rw-r--r-- | sca-cpp/trunk/components/filedb/filedb.hpp | 2 | ||||
-rw-r--r-- | sca-cpp/trunk/configure.ac | 2 | ||||
-rw-r--r-- | sca-cpp/trunk/kernel/gc.hpp | 2 | ||||
-rw-r--r-- | sca-cpp/trunk/kernel/mem-test.cpp | 2 | ||||
-rw-r--r-- | sca-cpp/trunk/modules/python/eval.hpp | 6 |
6 files changed, 8 insertions, 8 deletions
diff --git a/sca-cpp/trunk/components/cache/memcache.hpp b/sca-cpp/trunk/components/cache/memcache.hpp index 06e2061a09..d9e9a2b798 100644 --- a/sca-cpp/trunk/components/cache/memcache.hpp +++ b/sca-cpp/trunk/components/cache/memcache.hpp @@ -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); diff --git a/sca-cpp/trunk/components/filedb/filedb.hpp b/sca-cpp/trunk/components/filedb/filedb.hpp index 89e0c1b424..22f2dfffc8 100644 --- a/sca-cpp/trunk/components/filedb/filedb.hpp +++ b/sca-cpp/trunk/components/filedb/filedb.hpp @@ -74,7 +74,7 @@ public: } private: - const bool owner; + unused const bool owner; const string name; const string format; diff --git a/sca-cpp/trunk/configure.ac b/sca-cpp/trunk/configure.ac index b0992a58b1..041c83a384 100644 --- a/sca-cpp/trunk/configure.ac +++ b/sca-cpp/trunk/configure.ac @@ -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]) diff --git a/sca-cpp/trunk/kernel/gc.hpp b/sca-cpp/trunk/kernel/gc.hpp index 2b65132588..3f30118d47 100644 --- a/sca-cpp/trunk/kernel/gc.hpp +++ b/sca-cpp/trunk/kernel/gc.hpp @@ -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; diff --git a/sca-cpp/trunk/kernel/mem-test.cpp b/sca-cpp/trunk/kernel/mem-test.cpp index 2072da9f68..89a0bedef7 100644 --- a/sca-cpp/trunk/kernel/mem-test.cpp +++ b/sca-cpp/trunk/kernel/mem-test.cpp @@ -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) { diff --git a/sca-cpp/trunk/modules/python/eval.hpp b/sca-cpp/trunk/modules/python/eval.hpp index 3728cdb7bb..0a627333e5 100644 --- a/sca-cpp/trunk/modules/python/eval.hpp +++ b/sca-cpp/trunk/modules/python/eval.hpp @@ -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 |