Re: [PATCH] include: xfuncs: employ compiler attributes to aid GCC warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 16 Jul 2024 13:56:45 +0200, Ahmad Fatoum wrote:
> We already use __alloc_size and __realloc_size in <malloc.h>, so GCC can
> warn about some types of memory safety issues at build-time.
> 
> Let's have the same for xfuncs.h as well and additionally specify
> __returns_nonnull, so the compiler could provide better diagnostics.
> 
> 
> [...]

Applied, thanks!

[1/1] include: xfuncs: employ compiler attributes to aid GCC warnings
      https://git.pengutronix.de/cgit/barebox/commit/?id=e80f48216932 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux