libsepol: fix unused variable 'size' on mac build

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@intel.com>
This commit is contained in:
William Roberts 2016-09-23 13:55:50 -07:00 committed by Stephen Smalley
parent 2059435f9a
commit e729fbe9b4

View File

@ -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);