From: Tamar Christina Date: Sun, 21 Dec 2025 16:03:00 +0000 (+0000) Subject: fortran, openmp: Add default case to trans-openmp switch in order to avoid -Wmaybe... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c65fdb6b03d9146ee9a1ffcfcbc689b004b2b463;p=thirdparty%2Fgcc.git fortran, openmp: Add default case to trans-openmp switch in order to avoid -Wmaybe-uninitialized warning Similar to g:67356e61bd58ed17e4d5e67624a17a39e592fb5d this adds a default case such that we don't get a warning on type being used uninitialized. This fixes the armhf bootstrap. gcc/fortran/ChangeLog: * trans-openmp.cc (gfc_trans_omp_clauses): Add default to switch. --- diff --git a/gcc/fortran/trans-openmp.cc b/gcc/fortran/trans-openmp.cc index 254fc934af1..d7f3c281823 100644 --- a/gcc/fortran/trans-openmp.cc +++ b/gcc/fortran/trans-openmp.cc @@ -5281,6 +5281,7 @@ gfc_trans_omp_clauses (stmtblock_t *block, gfc_omp_clauses *clauses, type = OMP_CLAUSE_DEVICE_TYPE_ANY; break; case OMP_DEVICE_TYPE_UNSET: + default: gcc_unreachable (); } c = build_omp_clause (gfc_get_location (&where), OMP_CLAUSE_DEVICE_TYPE);