Skip to content

Commit

Permalink
fix pragma warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Mar 21, 2024
1 parent 6ee01da commit 5080ef5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/htslib-1.19.1/hfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion src/htslib-1.19.1/hfile_libcurl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/htslib-1.19.1/htscodecs/htscodecs/fqzcomp_qual.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/htslib-1.19.1/htscodecs/htscodecs/htscodecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion src/htslib-1.19.1/htscodecs/htscodecs/htscodecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 5080ef5

Please sign in to comment.