This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Warn implicit enum conversions
- From: "Richter, Jörg" <Joerg dot Richter at pdv-FS dot de>
- To: <gcc at gcc dot gnu dot org>
- Date: Mon, 22 Nov 2004 16:03:55 +0100
- Subject: Warn implicit enum conversions
Hi,
I'm looking for a type attribute for enums which enables warnings when variables of this enum type are implicitly converted to an integral type like int.
I read the online manual and found nothing I could try.
I can't imagine, that this demand is so uncommon. Perhaps someone knows of a patch that does something like this? Or alternatively you can point me to some functions in gcc where I can start to try to implement it myself?
Ah yes, I need it for C++.
Any help would be greatly appreciated.
Joerg