Re: [PATCH] libselinux: fix unused variable error

2016-09-28 Thread Stephen Smalley
On 09/28/2016 11:53 AM, william.c.robe...@intel.com wrote: > From: William Roberts > > When building for Android, this error manifests itself: > > label_file.c:570:7: error: unused variable ‘subs_file’ > [-Werror=unused-variable] > char subs_file[PATH_MAX + 1]; >

Re: [PATCH] libselinux: fix unused variable error

2016-09-28 Thread William Roberts
On Wed, Sep 28, 2016 at 11:53 AM, wrote: > From: William Roberts > > When building for Android, this error manifests itself: > > label_file.c:570:7: error: unused variable ‘subs_file’ > [-Werror=unused-variable] > char

[PATCH] libselinux: fix unused variable error

2016-09-28 Thread william . c . roberts
From: William Roberts When building for Android, this error manifests itself: label_file.c:570:7: error: unused variable ‘subs_file’ [-Werror=unused-variable] char subs_file[PATH_MAX + 1]; Fix it by moving the variable into the ifdef'd usage block.