]> git.ipfire.org Git - thirdparty/gcc.git/commit
fortran, openmp: Add default case to trans-openmp switch in order to avoid -Wmaybe...
authorTamar Christina <tamar.christina@arm.com>
Sun, 21 Dec 2025 16:03:00 +0000 (16:03 +0000)
committerTamar Christina <tamar.christina@arm.com>
Sun, 21 Dec 2025 16:03:00 +0000 (16:03 +0000)
commitc65fdb6b03d9146ee9a1ffcfcbc689b004b2b463
tree24b076df7b4c45b5f7331af1681f422768d137cd
parente7087d5ca0e566215dffac6f805ea375d10340fc
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.
gcc/fortran/trans-openmp.cc