From: William Roberts <william.c.roberts@xxxxxxxxx> Fix this on Mac build: genbools.c:71:9: warning: unused variable 'size' [-Wunused-variable] size_t size = 0; ^ Signed-off-by: William Roberts <william.c.roberts@xxxxxxxxx> --- libsepol/src/genbools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsepol/src/genbools.c b/libsepol/src/genbools.c index c81e848..c1f5405 100644 --- a/libsepol/src/genbools.c +++ b/libsepol/src/genbools.c @@ -68,7 +68,6 @@ static int load_booleans(struct policydb *policydb, const char *path, { FILE *boolf; char *buffer = NULL; - size_t size = 0; char localbools[BUFSIZ]; char name[BUFSIZ]; int val; @@ -87,6 +86,7 @@ static int load_booleans(struct policydb *policydb, const char *path, while(fgets(buffer, 255, boolf) != NULL) { #else + size_t size = 0; while (getline(&buffer, &size, boolf) > 0) { #endif int ret = process_boolean(buffer, name, sizeof(name), &val); -- 1.9.1 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.