[apparmor] [PATCH 3/3] parser: Fix "PDEBUG" redefined warning

Seth Arnold seth.arnold at canonical.com
Sat Feb 28 00:09:08 UTC 2015


On Fri, Feb 27, 2015 at 05:37:12PM -0600, Tyler Hicks wrote:
> Only present when building with DEBUG=1.
> 
> Signed-off-by: Tyler Hicks <tyhicks at canonical.com>

Acked-by: Seth Arnold <seth.arnold at canonical.com>
for both trunk and 2.9 as you see fit.

Thanks

> ---
>  parser/parser_policy.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/parser/parser_policy.c b/parser/parser_policy.c
> index c27c790..966044d 100644
> --- a/parser/parser_policy.c
> +++ b/parser/parser_policy.c
> @@ -34,8 +34,10 @@
>  
>  /* #define DEBUG */
>  #ifdef DEBUG
> +#undef PDEBUG
>  #define PDEBUG(fmt, args...) fprintf(stderr, "Lexer: " fmt, ## args)
>  #else
> +#undef PDEBUG
>  #define PDEBUG(fmt, args...)	/* Do nothing */
>  #endif
>  #define NPDEBUG(fmt, args...)	/* Do nothing */
> -- 
> 2.1.4
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150227/9a8781cd/attachment.pgp>


More information about the AppArmor mailing list