Skip to content

Commit

Permalink
biology/bcf-score: Unbreak build with clang 16
Browse files Browse the repository at this point in the history
Patch function pointer assignments that went from warning to error
with the compiler upgrade

Reported by:    pkg-fallout
  • Loading branch information
Jason W. Bacon authored and Jason W. Bacon committed Jul 16, 2023
1 parent e7f65a5 commit 63e5ba4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions biology/bcf-score/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
11 changes: 11 additions & 0 deletions biology/bcf-score/files/patch-plugins_munge.c
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions biology/bcf-score/files/patch-plugins_score.c
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 63e5ba4

Please sign in to comment.