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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user