Ignore:
Timestamp:
Jul 14, 2026, 9:26:24 PM (4 hours ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
a12816e7
Parents:
f41b161
Message:

formatting, turn off -Wdangling-pointer around small code fragments because of false positive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/enum_tests/planet.cfa

    rf41b161 rc62013e  
    3636
    3737//      Planet rp = fromInt( prng( countof( Planet ) ) );       // select random orbiting body
     38
     39        #pragma GCC diagnostic push
     40        // FIX ME: false positive with gcc > 11, so disable.
     41        #pragma GCC diagnostic ignored "-Wdangling-pointer"
    3842        Planet rp = fromInt( countof( Planet ) - 1 );           // non-random for test suite
     43        #pragma GCC diagnostic pop
     44
    3945        choose( rp ) {                                                                          // implicit breaks
    4046          case MERCURY, VENUS, EARTH, MARS:
Note: See TracChangeset for help on using the changeset viewer.