From 5080ef5c397b626042a562d63a822a3028406a33 Mon Sep 17 00:00:00 2001 From: Zilong-Li Date: Thu, 21 Mar 2024 09:16:38 +0100 Subject: [PATCH] fix pragma warning --- src/htslib-1.19.1/hfile.c | 4 ++-- src/htslib-1.19.1/hfile_libcurl.c | 2 +- src/htslib-1.19.1/htscodecs/htscodecs/fqzcomp_qual.c | 2 +- src/htslib-1.19.1/htscodecs/htscodecs/htscodecs.c | 2 +- src/htslib-1.19.1/htscodecs/htscodecs/htscodecs.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/htslib-1.19.1/hfile.c b/src/htslib-1.19.1/hfile.c index 8a878b5..3f9407f 100644 --- a/src/htslib-1.19.1/hfile.c +++ b/src/htslib-1.19.1/hfile.c @@ -969,7 +969,7 @@ void hfile_shutdown(int do_close_plugin) pthread_mutex_unlock(&plugins_lock); } -static void hfile_exit() +static void hfile_exit(void) { hfile_shutdown(0); pthread_mutex_destroy(&plugins_lock); @@ -1071,7 +1071,7 @@ static int init_add_plugin(void *obj, int (*init)(struct hFILE_plugin *), * Returns 0 on success, * <0 on failure */ -static int load_hfile_plugins() +static int load_hfile_plugins(void) { static const struct hFILE_scheme_handler data = { hopen_mem, hfile_always_local, "built-in", 80 }, diff --git a/src/htslib-1.19.1/hfile_libcurl.c b/src/htslib-1.19.1/hfile_libcurl.c index e70550e..3463acf 100644 --- a/src/htslib-1.19.1/hfile_libcurl.c +++ b/src/htslib-1.19.1/hfile_libcurl.c @@ -277,7 +277,7 @@ static void free_auth(auth_token *tok) { free(tok); } -static void libcurl_exit() +static void libcurl_exit(void) { if (curl_share_cleanup(curl.share) == CURLSHE_OK) curl.share = NULL; diff --git a/src/htslib-1.19.1/htscodecs/htscodecs/fqzcomp_qual.c b/src/htslib-1.19.1/htscodecs/htscodecs/fqzcomp_qual.c index a5b6687..4d96cb9 100644 --- a/src/htslib-1.19.1/htscodecs/htscodecs/fqzcomp_qual.c +++ b/src/htslib-1.19.1/htscodecs/htscodecs/fqzcomp_qual.c @@ -270,7 +270,7 @@ static void dump_map(unsigned int *map, int size, char *name) { fprintf(stderr, "}\n"); } -#pragma GCC diagnostic ignored "-Wunused-function" +/* #pragma GCC diagnostic ignored "-Wunused-function" */ static void dump_params(fqz_gparams *gp) { fprintf(stderr, "Global params = {\n"); fprintf(stderr, "\tvers\t%d\n", gp->vers); diff --git a/src/htslib-1.19.1/htscodecs/htscodecs/htscodecs.c b/src/htslib-1.19.1/htscodecs/htscodecs/htscodecs.c index aad2c9c..35fc6b4 100644 --- a/src/htslib-1.19.1/htscodecs/htscodecs/htscodecs.c +++ b/src/htslib-1.19.1/htscodecs/htscodecs/htscodecs.c @@ -39,6 +39,6 @@ * NB: This is obtained from the auto-generated version.h, so * we can include release number and git hash. */ -const char *htscodecs_version() { +const char *htscodecs_version(void) { return HTSCODECS_VERSION_TEXT; } diff --git a/src/htslib-1.19.1/htscodecs/htscodecs/htscodecs.h b/src/htslib-1.19.1/htscodecs/htscodecs/htscodecs.h index e38477f..09c38a5 100644 --- a/src/htslib-1.19.1/htscodecs/htscodecs/htscodecs.h +++ b/src/htslib-1.19.1/htscodecs/htscodecs/htscodecs.h @@ -50,6 +50,6 @@ * NB: This is obtained from the auto-generated version.h, so * we can include release number and git hash. */ -const char *htscodecs_version(); +const char *htscodecs_version(void); #endif /* HTSCODECS_H */