From d3bc4e43a5ca4325eb435061d4fc4219161596ab Mon Sep 17 00:00:00 2001 From: Steve Beattie Date: Tue, 10 Dec 2013 12:42:50 -0800 Subject: [PATCH] parser: fix rlimit missing initializer warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: Seth Arnold --- parser/profile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/profile.h b/parser/profile.h index 3bfa6557e..1f04a683a 100644 --- 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);