[PATCH] power: don't disable all cast qualifier warnings

Morten Brørup mb at smartsharesystems.com
Tue Aug 13 08:11:49 CEST 2024


> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> 
> Only in one place does the power library need un-constify a pointer
> and this can be done by casting to uintptr_t first. Better, to have
> the warning enabled across the rest of the code.
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---

Agree; disabling warnings should be avoided.

Acked-by: Morten Brørup <mb at smartsharesystems.com>



More information about the dev mailing list