[COMMITTED] libsframe: fix warning about argument of sframe_fre_sanity_check_p

Jens Remus jremus@linux.ibm.com
Fri Oct 17 10:23:24 GMT 2025


Hi Indu!

On 10/17/2025 7:55 AM, Indu Bhagat via Binutils wrote:
> [Committed as Obvious].
> 
> Recent commit (6ca8915c) added a new API sframe_fre_get_ra_undefined_p
> (). It has a 'const sframe_frame_row_entry *fre' argument, causing a
> warning in function ‘sframe_fre_get_ra_undefined_p’:
> 
> libsframe/sframe.c:794:50: warning: passing argument 1 of
> ‘sframe_fre_sanity_check_p’ discards ‘const’ qualifier from pointer
> target type [-Wdiscarded-qualifiers]
>   794 |   if (fre == NULL || !sframe_fre_sanity_check_p (fre))
>       |                                                  ^~~
> libsframe/sframe.c:293:52: note: expected ‘sframe_frame_row_entry *’ but
> argument is of type ‘const sframe_frame_row_entry *’
>   293 | sframe_fre_sanity_check_p (sframe_frame_row_entry *frep)
>       |                            ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
> 
> Fix it by using const qualifier.

My bad.  Thank you!

Regards,
Jens
-- 
Jens Remus
Linux on Z Development (D3303)
+49-7031-16-1128 Office
jremus@de.ibm.com

IBM

IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Böblingen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/



More information about the Binutils mailing list