arm: [MVE intrinsics] Add default clause to full_width_access::memory_vector_mode

Message ID 20231123155627.2335026-1-christophe.lyon@linaro.org
State Unresolved
Headers
Series arm: [MVE intrinsics] Add default clause to full_width_access::memory_vector_mode |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Christophe Lyon Nov. 23, 2023, 3:56 p.m. UTC
  My recent commit 0c2037d9d93a8f768cb11698ff794278246bb31f added a
switch statement lacking a default clause, leading to warnings or
errors when building with --enable-werror-always.

Fix by adding an empty default.

Committed as obvious.

2023-11-23  Christophe Lyon  <christophe.lyon@linaro.org>

	gcc/
	* config/arm/arm-mve-builtins-functions.h
	(full_width_access::memory_vector_mode): Add default clause.
---
 gcc/config/arm/arm-mve-builtins-functions.h | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/gcc/config/arm/arm-mve-builtins-functions.h b/gcc/config/arm/arm-mve-builtins-functions.h
index 6d234a2dd7c..1c93e6436b5 100644
--- a/gcc/config/arm/arm-mve-builtins-functions.h
+++ b/gcc/config/arm/arm-mve-builtins-functions.h
@@ -1013,6 +1013,8 @@  public:
       case E_V8HFmode:
 	mode = E_V8HImode;
 	break;
+      default:
+	break;
       }
 
     if (m_vectors_per_tuple != 1)