[apparmor] [patch 07/12] parser: fix rlimit missing initializer warning
Seth Arnold
seth.arnold at canonical.com
Tue Dec 10 06:08:12 UTC 2013
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 <steve at nxnw.org>
Acked-by: Seth Arnold <seth.arnold at canonical.com>
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);
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20131209/32e9423c/attachment.pgp>
More information about the AppArmor
mailing list