Fastx-toolkit package: patch for Fujitsu compiler (#14218)

Specify the scope of pragma pack
This commit is contained in:
noguchi-k 2020-01-30 04:45:37 +09:00 committed by GitHub
parent ed4d544e8f
commit da189b8d1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,19 @@
--- spack-src/src/libfastx/fastx.h.org 2019-12-19 12:05:37.497936486 +0900
+++ spack-src/src/libfastx/fastx.h 2019-12-19 13:44:55.481837853 +0900
@@ -58,7 +58,7 @@
OUTPUT_SAME_AS_INPUT=3
} OUTPUT_FILE_TYPE;
-#pragma pack(1)
+#pragma pack(push, 1)
typedef struct
{
/* Record data - common for FASTA/FASTQ */
@@ -115,6 +115,7 @@
FILE* input;
FILE* output;
} FASTX ;
+#pragma pack(pop)
void fastx_init_reader(FASTX *pFASTX, const char* filename,

View File

@ -19,3 +19,5 @@ class FastxToolkit(AutotoolsPackage):
# patch implicit fallthrough
patch("pr-22.patch")
# fix error [-Werror,-Wpragma-pack]
patch('fix_pragma_pack.patch', when='%fj')