From 6a3c1fcb4ba42ad4d5d142c17a3712a6ddd3866f Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Fri, 31 Oct 2014 00:33:20 -0700 Subject: Remove -Wno-unused-parameter and -Wno-sign-promo from base cflags. Fix associated errors about unused paramenters and implict sign conversions. For sign conversion this was largely in the area of enums, so add ostream operators for the effected enums and fix tools/generate-operator-out.py. Tidy arena allocation code and arena allocated data types, rather than fixing new and delete operators. Remove dead code. Change-Id: I5b433e722d2f75baacfacae4d32aef4a828bfe1b --- compiler/utils/array_ref.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'compiler/utils/array_ref.h') diff --git a/compiler/utils/array_ref.h b/compiler/utils/array_ref.h index e6b4a6a47c..c137e46804 100644 --- a/compiler/utils/array_ref.h +++ b/compiler/utils/array_ref.h @@ -68,7 +68,8 @@ class ArrayRef { template constexpr ArrayRef(U (&array)[size], - typename std::enable_if::value, tag>::type t = tag()) + typename std::enable_if::value, tag>::type + t ATTRIBUTE_UNUSED = tag()) : array_(array), size_(size) { } @@ -76,12 +77,6 @@ class ArrayRef { : array_(array), size_(size) { } - template - constexpr ArrayRef(U* array, size_t size, - typename std::enable_if::value, tag>::type t = tag()) - : array_(array), size_(size) { - } - template explicit ArrayRef(std::vector& v) : array_(v.data()), size_(v.size()) { @@ -89,7 +84,8 @@ class ArrayRef { template ArrayRef(const std::vector& v, - typename std::enable_if::value, tag>::tag t = tag()) + typename std::enable_if::value, tag>::tag + t ATTRIBUTE_UNUSED = tag()) : array_(v.data()), size_(v.size()) { } -- cgit v1.2.3-59-g8ed1b