From da40a69c9ef8784d37c968ac37daf6f8883d2755 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sun, 13 Dec 2020 10:41:06 +0000 Subject: [PATCH] vec: Silence clang warning I noticed during compatibility testing that clang warns that this operator won't be implicitly const in C++14 onwards. gcc/ * vec.h (vnull::operator vec): Make const. --- gcc/vec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/vec.h b/gcc/vec.h index 09166f1bce6..31574b49c25 100644 --- a/gcc/vec.h +++ b/gcc/vec.h @@ -550,7 +550,7 @@ vec_copy_construct (T *dst, const T *src, unsigned n) struct vnull { template - CONSTEXPR operator vec () { return vec(); } + CONSTEXPR operator vec () const { return vec(); } }; extern vnull vNULL; -- 2.30.2