Changeset 7528


Ignore:
Timestamp:
06/29/18 22:29:34 (3 weeks ago)
Author:
baker
Message:

silence warning: missing initializer [-Wmissing-field-initializers] for "= { { 0 } }"

Location:
trunk/src/data_exchange/scn_convert
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/data_exchange/scn_convert/to_trace_scn.c

    r7478 r7528  
    2424    TRACE_HEADER  *TraceHeadP;     /* The tracebuf header  */ 
    2525    TRACE2_HEADER Trace2Head;      /* The tracebuf2 header */ 
    26 /* #pragma clang: silence Mac OS X missing field initializer warning */ 
     26/* #pragma clang: silence Mac OS X CLANG missing field initializer warning */ 
    2727#ifdef __clang__ 
    2828#pragma clang diagnostic push 
    2929#pragma clang diagnostic ignored "-Wmissing-field-initializers" 
    3030#endif 
     31/* #pragma GCC: silence Linux GCC missing field initializer warning */ 
     32#ifdef __GNUC__ 
     33#pragma GCC diagnostic push 
     34#pragma GCC diagnostic ignored "-Wmissing-field-initializers" 
     35#endif 
    3136    S2S s = { { 0 } }; 
    3237#ifdef __clang__ 
    3338#pragma clang diagnostic pop 
     39#endif 
     40#ifdef __GNUC__ 
     41#pragma GCC diagnostic pop 
    3442#endif 
    3543 
  • trunk/src/data_exchange/scn_convert/to_trace_scnl.c

    r7478 r7528  
    2424    TRACE_HEADER  TraceHead;       /* The tracebuf header  */ 
    2525    TRACE2_HEADER *Trace2HeadP;    /* The tracebuf2 header */ 
    26 /* #pragma clang: silence Mac OS X missing field initializer warning */ 
     26/* #pragma clang: silence Mac OS X CLANG missing field initializer warning */ 
    2727#ifdef __clang__ 
    2828#pragma clang diagnostic push 
    2929#pragma clang diagnostic ignored "-Wmissing-field-initializers" 
    3030#endif 
     31/* #pragma GCC: silence Linux GCC missing field initializer warning */ 
     32#ifdef __GNUC__ 
     33#pragma GCC diagnostic push 
     34#pragma GCC diagnostic ignored "-Wmissing-field-initializers" 
     35#endif 
    3136    S2S s = { { 0 } }; 
    3237#ifdef __clang__ 
    3338#pragma clang diagnostic pop 
     39#endif 
     40#ifdef __GNUC__ 
     41#pragma GCC diagnostic pop 
    3442#endif 
    3543 
Note: See TracChangeset for help on using the changeset viewer.