-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Jason W. Bacon
authored and
Jason W. Bacon
committed
Jul 16, 2023
1 parent
e7f65a5
commit 63e5ba4
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |