diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-02-17 13:07:16 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-02-17 13:07:16 +0100 |
commit | 1cc1884587bd156fb210c2a049ae12b763a2a9e1 (patch) | |
tree | c4ccbf52096cd4d424879384c6cbaed739c3dc44 /tests | |
parent | d352025fc0e8fea2f7f166b3c3f945d3aa16efa3 (diff) |
add gcc attributes to some functions and parameters
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@250 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dict/test_dict.c | 3 | ||||
-rw-r--r-- | tests/test_aliases.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/dict/test_dict.c b/tests/dict/test_dict.c index a97964e..6ceaeb5 100644 --- a/tests/dict/test_dict.c +++ b/tests/dict/test_dict.c @@ -27,9 +27,10 @@ #include <assert.h> #include "../../nslcd/dict.h" +#include "compat/attrs.h" /* the main program... */ -int main(int argc,char *argv[]) +int main(int UNUSED(argc),char UNUSED(*argv[])) { DICT *dict; void *ret; diff --git a/tests/test_aliases.c b/tests/test_aliases.c index 2428b29..b821422 100644 --- a/tests/test_aliases.c +++ b/tests/test_aliases.c @@ -30,6 +30,7 @@ #include <arpa/inet.h> #include "nss/prototypes.h" +#include "compat/attrs.h" static char *nssstatus(enum nss_status retv) { @@ -59,7 +60,7 @@ static void printalias(struct aliasent *alias) } /* the main program... */ -int main(int argc,char *argv[]) +int main(int UNUSED(argc),char UNUSED(*argv[])) { struct aliasent aliasresult; char buffer[1024]; |