summaryrefslogtreecommitdiffstats
path: root/libstdc++
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-02-18 12:02:37 -0800
committerElliott Hughes <enh@google.com>2014-02-18 12:02:37 -0800
commit240f1e2940e7e23811ec091d3dc354550a13a385 (patch)
tree0e3587ce2aba99ba938ab6d9df9057efb3d0538c /libstdc++
parentd4bc9ef83b36916d5e63c4c3e4a092381473ea52 (diff)
downloadbionic-240f1e2940e7e23811ec091d3dc354550a13a385.zip
bionic-240f1e2940e7e23811ec091d3dc354550a13a385.tar.gz
bionic-240f1e2940e7e23811ec091d3dc354550a13a385.tar.bz2
Clean up warnings in libstdc++.
Change-Id: Ie71a2fdf227e7a5fc9a446bb1be110da9b3a4280
Diffstat (limited to 'libstdc++')
-rw-r--r--libstdc++/Android.mk1
-rw-r--r--libstdc++/src/typeinfo.cpp23
2 files changed, 10 insertions, 14 deletions
diff --git a/libstdc++/Android.mk b/libstdc++/Android.mk
index 41e6c4d..c7ed1f5 100644
--- a/libstdc++/Android.mk
+++ b/libstdc++/Android.mk
@@ -9,6 +9,7 @@ ifeq ($(TARGET_CPU_SMP),true)
else
libstdc++_cflags += -DANDROID_SMP=0
endif
+libstdc++_cflags += -Wall -Wextra -Werror
include $(CLEAR_VARS)
diff --git a/libstdc++/src/typeinfo.cpp b/libstdc++/src/typeinfo.cpp
index b426f1a..928d2ea 100644
--- a/libstdc++/src/typeinfo.cpp
+++ b/libstdc++/src/typeinfo.cpp
@@ -7,26 +7,21 @@ type_info::type_info() {
type_info::~type_info() {
}
-char const *
-type_info::name() const {
- return "N/A";
+char const* type_info::name() const {
+ return "N/A";
}
-bool
-type_info::operator==(type_info const & right) const {
- return false;
+bool type_info::operator==(type_info const& /*rhs*/) const {
+ return false;
}
-bool
-type_info::operator!=(type_info const & right) const {
- return false;
+bool type_info::operator!=(type_info const& /*rhs*/) const {
+ return false;
}
-bool
-type_info::before(type_info const & right) const {
- return false;
+bool type_info::before(type_info const& /*rhs*/) const {
+ return false;
}
-type_info::type_info(type_info const & right) {
+type_info::type_info(type_info const& /*rhs*/) {
}
-