]> git.ipfire.org Git - thirdparty/kmod.git/commit
tree-wide: Sprinkle _clang_suppress_alloc_
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 11 Nov 2024 15:04:44 +0000 (09:04 -0600)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 12 Nov 2024 00:11:11 +0000 (18:11 -0600)
commit28ba117fc655b237eb865f0fec439dacb89fba30
treef67202af966e07398559bf3295e0b9d28de9aa9f
parent5322bb8fd1c5de0a1f3d0ae5bb50459cd9243923
tree-wide: Sprinkle _clang_suppress_alloc_

Add the clang::suppress attribute to places where allocation is done and
that rely on the cleanup attribute. Clang analyzer doesn't handle those
(yet), so keep it from giving us false positive.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/233
libkmod/libkmod-config.c
libkmod/libkmod-module.c
shared/util.c
tools/depmod.c