1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-17 19:39:43 +00:00

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
This commit is contained in:
Jason W. Bacon 2023-07-16 08:19:06 -05:00
parent e7f65a58f2
commit 63e5ba4396
3 changed files with 23 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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