mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
gas alloc casts
All of the various memory allocation function return a "void *" pointer, which needs no cast to assign to other pointer types.
This commit is contained in:
@@ -81,7 +81,7 @@ frag_alloc (struct obstack *ob, size_t extra)
|
||||
(void) obstack_alloc (ob, 0);
|
||||
oalign = obstack_alignment_mask (ob);
|
||||
obstack_alignment_mask (ob) = 0;
|
||||
ptr = (fragS *) obstack_alloc (ob, extra + SIZEOF_STRUCT_FRAG);
|
||||
ptr = obstack_alloc (ob, extra + SIZEOF_STRUCT_FRAG);
|
||||
obstack_alignment_mask (ob) = oalign;
|
||||
memset (ptr, 0, SIZEOF_STRUCT_FRAG);
|
||||
totalfrags++;
|
||||
|
||||
Reference in New Issue
Block a user