]> git.ipfire.org Git - thirdparty/shadow.git/commit
Hide [[gnu::malloc(deallocator)]] in a macro
authorAlejandro Colomar <alx@kernel.org>
Wed, 28 Sep 2022 21:09:19 +0000 (23:09 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Mon, 5 Dec 2022 09:47:19 +0000 (10:47 +0100)
commitab91ec10b4a42b935183e06df3791f74869ed823
tree2084307f9906a5b936d845ccfb642e754eebb5e8
parent554f86bafa2581d81ffb39e92240e39d630c43c4
Hide [[gnu::malloc(deallocator)]] in a macro

Clang doesn't implement this attribute and reports an error.  Work
around it by hiding it in a macro that will be empty in clang.

Reported-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/defines.h
lib/prototypes.h