]> git.ipfire.org Git - thirdparty/gcc.git/commit
fortran: Add default to switch in gfc_trans_transfer [PR117843]
authorAndrew Pinski <quic_apinski@quicinc.com>
Fri, 29 Nov 2024 09:00:11 +0000 (01:00 -0800)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 6 Dec 2024 09:04:48 +0000 (10:04 +0100)
commitad590070fdcca8b89146b5949176bc0354f19745
tree006e950a4709596d849ae2b96694e096bb3a5a32
parentd3c18b92c97b0fd477c7a43ab7af1ed88faec4ba
fortran: Add default to switch in gfc_trans_transfer [PR117843]

This fixes a bootstrap failure due to a warning on enum values not being
handled. In this case, it is just checking two values and the rest should
are not handled so adding a default case fixes the issue.

Pushed as obvious.

PR fortran/117843
gcc/fortran/ChangeLog:

* trans-io.cc (gfc_trans_transfer): Add default case.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
(cherry picked from commit 48b72743b0e29871171593fe34856da62d954750)
gcc/fortran/trans-io.cc