Ignore:
Timestamp:
Jul 14, 2026, 10:03:22 PM (2 hours ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Parents:
a12816e7
Message:

turn on -Wdangling-pointer conditionally for gcc >= 12

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/vec/vec.hfa

    ra12816e7 rceb4cc1  
    118118        }
    119119
     120        #if __GNUC__ >= 12                                                                      // valid GNU compiler diagnostic ?
    120121        #pragma GCC diagnostic push
    121122        // FIX ME: false positive with gcc > 11, so disable.
    122123        #pragma GCC diagnostic ignored "-Wdangling-pointer"
     124        #endif // __GNUC__ >= 12
    123125
    124126        // Refract incident vector v with respect to surface with normal n eta is the ratio of indices of refraction between
     
    136138        }
    137139
     140        #if __GNUC__ >= 12                                                                      // valid GNU compiler diagnostic ?
    138141        #pragma GCC diagnostic pop
     142        #endif // __GNUC__ >= 12
    139143
    140144        // Given a perturbed normal and a geometric normal, flip the perturbed normal if the geometric normal is pointing
Note: See TracChangeset for help on using the changeset viewer.