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:
Alan Modra
2025-07-09 09:02:28 +09:30
parent 3dcea21160
commit 60ba816bc1
18 changed files with 31 additions and 39 deletions

View File

@@ -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++;