mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
fix function warning for testcommon.c and testcommon.h
Signed-off-by: liufanmin <liufanmin@xiaomi.com>
This commit is contained in:
parent
f761746011
commit
c0e1af9859
@ -162,7 +162,7 @@ void testSkip(const char *msg) {
|
||||
}
|
||||
|
||||
/* End test program */
|
||||
void testReport() {
|
||||
void testReport(void) {
|
||||
if (failed && skipped) {
|
||||
printf("Total %d tests, %d skipped, %d fails.\n", tests, skipped, failed);
|
||||
exit(-1);
|
||||
@ -1674,7 +1674,7 @@ int testUtilCmpEpss(const char *eps1, const char *eps2) {
|
||||
#endif
|
||||
|
||||
/* Whether ImageMagick's identify utility available on system */
|
||||
int testUtilHaveIdentify() {
|
||||
int testUtilHaveIdentify(void) {
|
||||
return system("magick -version " DEV_NULL) == 0;
|
||||
}
|
||||
|
||||
@ -1701,7 +1701,7 @@ int testUtilVerifyIdentify(const char *filename, int debug) {
|
||||
}
|
||||
|
||||
/* Whether Libre Office available on system */
|
||||
int testUtilHaveLibreOffice() {
|
||||
int testUtilHaveLibreOffice(void) {
|
||||
return system("libreoffice --version " DEV_NULL) == 0;
|
||||
}
|
||||
|
||||
@ -1785,7 +1785,7 @@ int testUtilVerifyLibreOffice(const char *filename, int debug) {
|
||||
#endif
|
||||
|
||||
/* Whether Ghostscript available on system */
|
||||
int testUtilHaveGhostscript() {
|
||||
int testUtilHaveGhostscript(void) {
|
||||
return system(GS_FILENAME " -v " DEV_NULL) == 0;
|
||||
}
|
||||
|
||||
@ -1809,7 +1809,7 @@ int testUtilVerifyGhostscript(const char *filename, int debug) {
|
||||
|
||||
/* Whether vnu validator available on system. v.Nu https://github.com/validator/validator
|
||||
Needs "$INSTALL_DIR/vnu-runtime-image/bin" in PATH */
|
||||
int testUtilHaveVnu() {
|
||||
int testUtilHaveVnu(void) {
|
||||
return system("vnu --version " DEV_NULL_STDERR) == 0;
|
||||
}
|
||||
|
||||
@ -1831,7 +1831,7 @@ int testUtilVerifyVnu(const char *filename, int debug) {
|
||||
}
|
||||
|
||||
/* Whether tiffinfo available on system. Requires libtiff 4.2.0 http://www.libtiff.org to be installed */
|
||||
int testUtilHaveTiffInfo() {
|
||||
int testUtilHaveTiffInfo(void) {
|
||||
return system("tiffinfo -h " DEV_NULL) == 0;
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ extern const char *assertionFilename;
|
||||
void testStartReal(const char *func, const char *name);
|
||||
void testFinish(void);
|
||||
void testSkip(const char *msg);
|
||||
void testReport();
|
||||
void testReport(void);
|
||||
|
||||
typedef struct s_testFunction {
|
||||
const char *name; void *func; int has_index; int has_generate; int has_debug;
|
||||
@ -157,15 +157,15 @@ int testUtilCmpBins(const char *bin1, const char *bin2);
|
||||
int testUtilCmpSvgs(const char *svg1, const char *svg2);
|
||||
int testUtilCmpEpss(const char *eps1, const char *eps2);
|
||||
|
||||
int testUtilHaveIdentify();
|
||||
int testUtilHaveIdentify(void);
|
||||
int testUtilVerifyIdentify(const char *filename, int debug);
|
||||
int testUtilHaveLibreOffice();
|
||||
int testUtilHaveLibreOffice(void);
|
||||
int testUtilVerifyLibreOffice(const char *filename, int debug);
|
||||
int testUtilHaveGhostscript();
|
||||
int testUtilHaveGhostscript(void);
|
||||
int testUtilVerifyGhostscript(const char *filename, int debug);
|
||||
int testUtilHaveVnu();
|
||||
int testUtilHaveVnu(void);
|
||||
int testUtilVerifyVnu(const char *filename, int debug);
|
||||
int testUtilHaveTiffInfo();
|
||||
int testUtilHaveTiffInfo(void);
|
||||
int testUtilVerifyTiffInfo(const char *filename, int debug);
|
||||
|
||||
int testUtilCanBwipp(int index, const struct zint_symbol *symbol, int option_1, int option_2, int option_3,
|
||||
|
Loading…
Reference in New Issue
Block a user