Skip to content

Suggested patch for clang 6 #20

@outpaddling

Description

@outpaddling

Build fails under clang 6 due to #pragma pack change during compilation.

We could either build everything with -fpack-struct=1 or restore default packing size after the struct def as shown in the patch below.

--- src/libfastx/fastx.h.orig   2018-05-16 14:50:08 UTC
+++ src/libfastx/fastx.h
@@ -58,7 +58,7 @@ typedef enum {
        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 @@ typedef struct 
        FILE*   input;
        FILE*   output;
 } FASTX ;
+#pragma pack(pop)
 
 
 void fastx_init_reader(FASTX *pFASTX, const char* filename, 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions