This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc-as-cxx] enum conversion to int
Matt <matt@use.net> writes:
> Yes, was I pasted was a local change. I was trying to eliminate the
> implicit cast to int from the enum type, which was causing my
> --enable-werror build to fail. At this point, I think the better
> option would be to break up the enum values into indivdual #defines
> and do a typedef df_changeable_flags int;
Don't use #defines. Enums give better debug info by default. typedef
df_changeable_flags int is fine if that seems necessary. Right now
the code simply doesn't use the df_changeable_flags type any time
there is more than one flag.
Ian