[PATCH] gas: Explicitly code void parameter list
Jens Remus
jremus@linux.ibm.com
Mon Jan 12 15:31:25 GMT 2026
On 1/12/2026 3:25 PM, Richard Earnshaw (foss) wrote:
> On 12/01/2026 14:14, Jens Remus wrote:
>> This fixes the following compile errors reported by Clang:
>>
>> CC config/obj-elf-attr.o
>> ../../gas/config/obj-elf-attr.c:64:21: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
>> 64 | oav1_attr_info_init ()
>> | ^
>> | void
>> ../../gas/config/obj-elf-attr.c:74:21: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
>> 74 | oav1_attr_info_exit ()
>> | ^
>> | void
>>
>> gas/
>> * config/obj-elf-attr.c (oav1_attr_info_init,
>> oav1_attr_info_exit): Explicitly code void parameter list.
>>
>> Signed-off-by: Jens Remus <jremus@linux.ibm.com>
>> ---
>> gas/config/obj-elf-attr.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/gas/config/obj-elf-attr.c b/gas/config/obj-elf-attr.c
>> index baee0e80850f..005787d1bdb9 100644
>> --- a/gas/config/obj-elf-attr.c
>> +++ b/gas/config/obj-elf-attr.c
>> @@ -61,7 +61,7 @@ oav1_attr_info_free (recorded_attribute_info_t *node)
>> }
>>
>> void
>> -oav1_attr_info_init ()
>> +oav1_attr_info_init (void)
>> {
>> /* Note: this "constructor" was added for symmetry with oav1_attr_info_exit.
>> recorded_attributes is a static variable which is automatically initialized
>> @@ -71,7 +71,7 @@ oav1_attr_info_init ()
>> }
>>
>> void
>> -oav1_attr_info_exit ()
>> +oav1_attr_info_exit (void)
>> {
>> oav1_attr_info_free (recorded_attributes);
>> }
>
>
> OK.
Thanks! Committed to mainline.
Regards,
Jens
--
Jens Remus
Linux on Z Development (D3303)
jremus@de.ibm.com / jremus@linux.ibm.com
IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Ehningen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/
More information about the Binutils
mailing list