mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
libapparmor: Add macro for the gcc "unused" attribute
As code is moved from the parser to libapparmor, the libapparmor code base will need to have the "unused" macro defined. This macro will need to be duplicated in the parser and libapparmor due to it being a compiler-specific macro that shouldn't be exported from libapparmor. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#define autofree __attribute((cleanup(_aa_autofree)))
|
||||
#define autoclose __attribute((cleanup(_aa_autoclose)))
|
||||
#define autofclose __attribute((cleanup(_aa_autofclose)))
|
||||
#define unused __attribute__ ((unused))
|
||||
|
||||
#if ENABLE_DEBUG_OUTPUT
|
||||
|
||||
|
Reference in New Issue
Block a user