On 05.03.21 13:40, Julien Grall wrote:
From: Julien Grall <jgr...@amazon.com>

At the moment PRINTF_ATTRIBUTE() is defined in two places:
     - tdb.h: Defined as a NOP
     - talloc.h: Defined as a NOP for GCC older than 3.0 otherwise will
     add the attribute to check the printf format

Xen requires to build with minimum GCC 4.1 and we want to check the
printf format for all the printf-like functions.

Only implement PRINTF_ATTRIBUTE() once in utils.h and drop the
conditional check for GCC < 3.0.

Signed-off-by: Julien Grall <jgr...@amazon.com>

Reviewed-by: Juergen Gross <jgr...@suse.com>


Juergen

Attachment: OpenPGP_0xB0DE9DD628BF132F.asc
Description: application/pgp-keys

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to