172ce53ffa793e69632923b5323fc8c2220b3294 |
|
05-Feb-2016 |
Nicolas Iooss <nicolas.iooss@m4x.org> |
libsepol: fix __attribute__((unused)) annotations clang warns about variables which are used in a function body even though they were marked __attribute__((unused)). For example: interfaces.c:129:2: error: 'handle' was marked unused but was used [-Werror,-Wused-but-marked-unused] handle = NULL; ^ interfaces.c:233:2: error: 'handle' was marked unused but was used [-Werror,-Wused-but-marked-unused] handle = NULL; ^ Remove these warnings either by removing meaningless assigments or by removing the attribute. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
/external/selinux/libsepol/src/debug.c
|
033959726bf32ab59a52201e0696f269c0810609 |
|
09-Dec-2010 |
Justin P. Mattock <justinmattock@gmail.com> |
Author: "Justin P. Mattock" Email: justinmattock@gmail.com Subject: libsepol Date: Tue, 6 Jul 2010 15:23:29 -0700 Going through these warning messages Im getting: (example 1 of many) booleans.c: In function 'sepol_bool_count': booleans.c:106:39: error: parameter 'handle' set but not used cc1: all warnings being treated as errors seems most of these go to NULL; Which tells me that these are here for future use and/or need to be there for some other reason. The biggest problem I have is Im getting errors out of these as opposed to just a warning(-Werror) so marking the variable with a GCC __attribute__ ((unused)) gets things going. Signed-off-by: Justin P. Mattock <justinmattock@gmail.com> Signed-off-by: Chad Sellers <csellers@tresys.com>
/external/selinux/libsepol/src/debug.c
|
13cd4c8960688af11ad23b4c946149015c80d549 |
|
19-Aug-2008 |
Joshua Brindle <method@manicmethod.com> |
initial import from svn trunk revision 2950
/external/selinux/libsepol/src/debug.c
|