[committed] fortran/dump-parse-tree.c: Use proper enum type (was: Re: [Patch ]Fortran/OpenMP: Extend defaultmap clause for OpenMP 5 [PR92568])
Tobias Burnus
tobias@codesourcery.com
Wed Jun 23 20:15:27 GMT 2021
Indeed, I somehow managed to use the wrong of the two enums in the cast ...
Fixed in r12-1760-gcac3527793b38164e2a83c7ccbfe0cfcf5ac95b8
On 23.06.21 16:13, Martin Liška wrote:
> I noticed the patch causes the following clang warnings:
> gcc/fortran/dump-parse-tree.c:1786:11: warning: comparison of
> different enumeration types in switch statement ('enum
> gfc_omp_defaultmap' and 'gfc_omp_defaultmap_category')
> [-Wenum-compare-switch]
Thanks for reporting!
Tobias
-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: committed.diff
Type: text/x-patch
Size: 921 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20210623/1aa16ba2/attachment.bin>
More information about the Fortran
mailing list