From: Richard Sandiford Date: Sun, 13 Dec 2020 10:41:06 +0000 (+0000) Subject: vec: Silence clang warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da40a69c9ef8784d37c968ac37daf6f8883d2755;p=gcc.git 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. --- 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;