diff options
author | Alan Modra <amodra@gmail.com> | 2025-07-09 09:02:28 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-07-09 09:35:07 +0930 |
commit | 60ba816bc1dba2435f0dc03ce1ffca0fd7254719 (patch) | |
tree | f2e0c322e82c10998d37da1ecd70bce500e1c127 /gas/write.c | |
parent | 3dcea21160ede74436f05aa519032337caa57241 (diff) | |
download | gdb-60ba816bc1dba2435f0dc03ce1ffca0fd7254719.zip gdb-60ba816bc1dba2435f0dc03ce1ffca0fd7254719.tar.gz gdb-60ba816bc1dba2435f0dc03ce1ffca0fd7254719.tar.bz2 |
gas alloc casts
All of the various memory allocation function return a "void *"
pointer, which needs no cast to assign to other pointer types.
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/write.c b/gas/write.c index 93ec614..353b11c 100644 --- a/gas/write.c +++ b/gas/write.c @@ -142,7 +142,7 @@ fix_new_internal (fragS *frag, /* Which frag? */ n_fixups++; - fixP = (fixS *) obstack_alloc (¬es, sizeof (fixS)); + fixP = obstack_alloc (¬es, sizeof (fixS)); fixP->fx_frag = frag; fixP->fx_where = where; |