Use GCC attribute warn_unsed_result for a few of the most important
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 31 Mar 2006 15:58:03 +0000 (15:58 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 31 Mar 2006 15:58:03 +0000 (15:58 +0000)
commit74fdf8a15af7bb827a256d9df3ecc34a57d2120f
tree81f82d28396328b4a57f28926e91de0efbb13b6c
parentcc74bd253ed898cd5b94826912cbc1ca1c940387
Use GCC attribute warn_unsed_result for a few of the most important
API functions. This allows us to find places where errors are not
properly dealt with.
All testlib functions are prefixed with tl_.. They usually
return 1 for TRUE, 0 for FALSE .. And YAZ_CHECK functions are used
in virtually all tests now.
45 files changed:
include/idzebra/api.h
index/apitest.c
index/main.c
index/zebraapi.c
index/zserver.c
test/Makefile.am
test/api/safari1.c
test/api/t0.c
test/api/t1.c
test/api/t10.c
test/api/t11.c
test/api/t12.c
test/api/t13.c
test/api/t14.c
test/api/t2.c
test/api/t3.c
test/api/t4.c
test/api/t5.c
test/api/t6.c
test/api/t7.c
test/api/t8.c
test/api/t9.c
test/api/testlib.c
test/api/testlib.h
test/charmap/charmap1.c
test/espec/t1.c
test/filters/grs.marc.c
test/filters/grs.xml.c
test/filters/text.c
test/marcxml/t1.c
test/marcxml/t2.c
test/mbox/mbox1.c
test/rusmarc/t1.c
test/sort/sort1.c
test/sort2/t1.c
test/xpath/xpath1.c
test/xpath/xpath2.c
test/xpath/xpath3.c
test/xpath/xpath4.c
test/xpath/xpath5.c
test/xpath/xpath6.c
test/xslt/xslt1.c
test/xslt/xslt2.c
test/xslt/xslt3.c
test/xslt/xslt4.c