Add casts to memory allocation related calls
[deliverable/binutils-gdb.git] / gdb / osabi.c
index 6a269a853c1fd7d9096a2ca008b7c98c2e4076b7..eb5a750c86d534895109636a5e2714e7d4c034e7 100644 (file)
@@ -458,7 +458,7 @@ generic_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect, void *obj)
      compressed section.  But, since note sections are not compressed,
      deferring the reading until we recognize the section avoids any
      error.  */
-  note = alloca (sectsize);
+  note = (char *) alloca (sectsize);
 
   /* .note.ABI-tag notes, used by GNU/Linux and FreeBSD.  */
   if (strcmp (name, ".note.ABI-tag") == 0)
This page took 0.026795 seconds and 4 git commands to generate.