mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
Cherry picked elements from trunk commit 1437: fix serious compiler
warnings, silence an error in non-rpm build environs. Nominated-by: Steve Beattie <sbeattie@ubuntu.com> Acked-By: Kees Cook <kees@ubuntu.com>
This commit is contained in:
parent
9578c217cb
commit
c2109f2c3b
@ -48,7 +48,7 @@ BUILDDIR=$(shell if [ -d "${TESTBUILDDIR}" ] ; then \
|
||||
echo "/tmp/${NAME}" ; \
|
||||
fi ;)
|
||||
endif
|
||||
RPMHOSTVENDOR=$(shell rpm --eval "%{_host_vendor}")
|
||||
RPMHOSTVENDOR=$(shell which rpm && rpm --eval "%{_host_vendor}")
|
||||
ifndef DISTRO
|
||||
DISTRO=$(shell if [ -f /etc/slackware-version ] ; then \
|
||||
echo slackware ; \
|
||||
|
@ -34,6 +34,8 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "parser.h"
|
||||
#include "parser_version.h"
|
||||
|
@ -412,7 +412,7 @@ flagvals: flagval
|
||||
|
||||
flagval: TOK_FLAG_ID
|
||||
{
|
||||
struct flagval fv = {0, 0, 0};
|
||||
struct flagval fv = { 0, 0, 0, 0 };
|
||||
if (strcmp($1, "debug") == 0) {
|
||||
yyerror(_("Profile flag 'debug' is no longer valid."));
|
||||
} else if (strcmp($1, "complain") == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user