diff mbox

[i386,windows] : Fix const type issue about find_slot

Message ID CAEwic4YbNiOYyOiZi8GtHEANwXf5oyjRaGPQPAyducmT686=_A@mail.gmail.com
State New
Headers show

Commit Message

Kai Tietz Nov. 26, 2013, 3:57 p.m. UTC
Hi,

this patch fixes a reported issue for windows targets in winnt.c.
This is a classical C++ related warning issue.

ChangeLog

2013-11-26  Kai Tietz  <ktietz@redhat.com>

        * config/i386/winnt.c (i386_pe_section_type_flags): Use const
        pointer cast.

I will apply soon, if there are no objections.

Regards,
Kai
diff mbox

Patch

Index: winnt.c
===================================================================
--- winnt.c     (Revision 204901)
+++ winnt.c     (Arbeitskopie)
@@ -486,7 +486,7 @@  i386_pe_section_type_flags (tree decl, const char
     flags |= SECTION_LINKONCE;

   /* See if we already have an entry for this section.  */
-  slot = htab.find_slot ((unsigned int *)name, INSERT);
+  slot = htab.find_slot ((const unsigned int *)name, INSERT);
   if (!*slot)
     {
       *slot = (unsigned int *) xmalloc (sizeof (unsigned int));