This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gcc-in-cxx] Another cast to enum type
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 06 Feb 2009 21:03:35 -0800
- Subject: [gcc-in-cxx] Another cast to enum type
I committed another cast to enum type to the gcc-in-cxx branch.
Ian
2009-02-06 Ian Lance Taylor <iant@google.com>
* decl2.c (constrain_visibility): Add cast to enum type.
Index: cp/decl2.c
===================================================================
--- cp/decl2.c (revision 143890)
+++ cp/decl2.c (working copy)
@@ -1857,7 +1857,7 @@ constrain_visibility (tree decl, int vis
else if (visibility > DECL_VISIBILITY (decl)
&& !DECL_VISIBILITY_SPECIFIED (decl))
{
- DECL_VISIBILITY (decl) = visibility;
+ DECL_VISIBILITY (decl) = (symbol_visibility) visibility;
return true;
}
return false;