On Tue, Dec 03, 2013 at 12:12:23PM -0800, Steve Beattie wrote:
> When compiling the parser, g++ currently emits warnings like so:
> 
>   profile.h: In constructor ‘Profile::Profile()’:
>   profile.h:177:11: warning: missing initializer for member 
> ‘aa_rlimits::limits’ [-Wmissing-field-initializers]
>      rlimits = { 0 };
>              ^
> 
> This patch fixes the issue.
> 
> Signed-off-by: Steve Beattie <[email protected]>

Acked-by: Seth Arnold <[email protected]>

Thanks

> ---
>  parser/profile.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Index: b/parser/profile.h
> ===================================================================
> --- a/parser/profile.h
> +++ b/parser/profile.h
> @@ -174,7 +174,7 @@ public:
>               parent = NULL;
>  
>               flags = { 0, 0, 0, 0};
> -             rlimits = { 0 };
> +             rlimits = {0, {}};
>  
>               std::fill(exec_table, exec_table + AA_EXEC_COUNT, (char *)NULL);
>  
> 

Attachment: signature.asc
Description: Digital signature

-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to