diff options
author | Jason W. Bacon <jwb@FreeBSD.org> | 2023-07-16 13:19:06 +0000 |
---|---|---|
committer | Jason W. Bacon <jwb@FreeBSD.org> | 2023-07-16 13:19:06 +0000 |
commit | 63e5ba4396f40d97df99b2856113afcb7623d7c9 (patch) | |
tree | df8ab1369de54e1ce318f35ad4377ac1b30620c9 | |
parent | e7f65a58f219d0f6f4e2d3b48e4ee431081ef92b (diff) |
biology/bcf-score: Unbreak build with clang 16
Patch function pointer assignments that went from warning to error
with the compiler upgrade
Reported by: pkg-fallout
-rw-r--r-- | biology/bcf-score/Makefile | 1 | ||||
-rw-r--r-- | biology/bcf-score/files/patch-plugins_munge.c | 11 | ||||
-rw-r--r-- | biology/bcf-score/files/patch-plugins_score.c | 11 |
3 files changed, 23 insertions, 0 deletions
diff --git a/biology/bcf-score/Makefile b/biology/bcf-score/Makefile index 96207e1f8f84..f183641f4a4f 100644 --- a/biology/bcf-score/Makefile +++ b/biology/bcf-score/Makefile @@ -1,5 +1,6 @@ PORTNAME= bcf-score DISTVERSION= 1.16 +PORTREVISION= 1 CATEGORIES= biology MASTER_SITES= https://software.broadinstitute.org/software/score/ DISTFILES+= score_${DISTVERSION}-20221221.tar.gz diff --git a/biology/bcf-score/files/patch-plugins_munge.c b/biology/bcf-score/files/patch-plugins_munge.c new file mode 100644 index 000000000000..8906f57a0a73 --- /dev/null +++ b/biology/bcf-score/files/patch-plugins_munge.c @@ -0,0 +1,11 @@ +--- plugins/munge.c.orig 2023-07-16 07:57:54 UTC ++++ plugins/munge.c +@@ -120,7 +120,7 @@ int tsv_read_string(tsv_t *tsv, bcf1_t *rec, void *usr + return 0; + } + +-static const int (*tsv_setters[])(tsv_t *tsv, bcf1_t *rec, void *usr) = {tsv_setter_id_flexible, // SNP ++static int (*tsv_setters[])(tsv_t *tsv, bcf1_t *rec, void *usr) = {tsv_setter_id_flexible, // SNP + tsv_setter_pos_flexible, // BP + tsv_setter_chrom_flexible, // CHR + tsv_read_allele, // A1 diff --git a/biology/bcf-score/files/patch-plugins_score.c b/biology/bcf-score/files/patch-plugins_score.c new file mode 100644 index 000000000000..c90a66f313b6 --- /dev/null +++ b/biology/bcf-score/files/patch-plugins_score.c @@ -0,0 +1,11 @@ +--- plugins/score.c.orig 2023-07-16 08:04:54 UTC ++++ plugins/score.c +@@ -140,7 +140,7 @@ static int tsv_read_allele(tsv_t *tsv, bcf1_t *rec, vo + return 0; + } + +-static const int (*tsv_setters[])(tsv_t *tsv, bcf1_t *rec, void *usr) = {tsv_setter_id_flexible, // SNP ++static int (*tsv_setters[])(tsv_t *tsv, bcf1_t *rec, void *usr) = {tsv_setter_id_flexible, // SNP + tsv_setter_pos_flexible, // BP + tsv_setter_chrom_flexible, // CHR + tsv_read_allele, // A1 |