diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-11-24 22:58:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-11-24 22:58:24 +0100 |
| commit | 0807f7a0590e8c55b59b70e1fbb834a21cefbf86 (patch) | |
| tree | 3303ba196d24962556aae93835bcf4a406eddc0b | |
| parent | a231f5ec72af46a4f747b1be7249ee8549f6b7fb (diff) | |
Fix libzip config checks.v2.16.68
| -rw-r--r-- | wscript | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -249,7 +249,7 @@ def configure(conf): conf.check_cfg(package='libzip', args='--cflags --libs', uselib_store='ZIP', mandatory=True) conf.check_cxx(fragment=""" #include <zip.h> - int main() { zip_source_t* foo; } + int main() { zip_source_t* foo; (void)foo; } """, mandatory=False, msg="Checking for zip_source_t", @@ -258,7 +258,7 @@ def configure(conf): ) conf.check_cxx(fragment=""" #include <zip.h> - int main() { struct zip* zip; zip_source_t* source; zip_file_add(zip, "foo", source, ZIP_FL_ENC_GUESS); } + int main() { struct zip* zip = nullptr; zip_source_t* source = nullptr; zip_file_add(zip, "foo", source, ZIP_FL_ENC_GUESS); } """, mandatory=False, msg="Checking for zip_file_add", |
