Changeset ceb4cc1
- Timestamp:
- Jul 14, 2026, 10:03:22 PM (62 minutes ago)
- Branches:
- master
- Parents:
- a12816e7
- Files:
-
- 2 edited
-
libcfa/src/vec/vec.hfa (modified) (2 diffs)
-
tests/enum_tests/planet.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/vec/vec.hfa
ra12816e7 rceb4cc1 118 118 } 119 119 120 #if __GNUC__ >= 12 // valid GNU compiler diagnostic ? 120 121 #pragma GCC diagnostic push 121 122 // FIX ME: false positive with gcc > 11, so disable. 122 123 #pragma GCC diagnostic ignored "-Wdangling-pointer" 124 #endif // __GNUC__ >= 12 123 125 124 126 // Refract incident vector v with respect to surface with normal n eta is the ratio of indices of refraction between … … 136 138 } 137 139 140 #if __GNUC__ >= 12 // valid GNU compiler diagnostic ? 138 141 #pragma GCC diagnostic pop 142 #endif // __GNUC__ >= 12 139 143 140 144 // Given a perturbed normal and a geometric normal, flip the perturbed normal if the geometric normal is pointing -
tests/enum_tests/planet.cfa
ra12816e7 rceb4cc1 37 37 // Planet rp = fromInt( prng( countof( Planet ) ) ); // select random orbiting body 38 38 39 #if __GNUC__ >= 12 // valid GNU compiler diagnostic ? 39 40 #pragma GCC diagnostic push 40 41 // FIX ME: false positive with gcc > 11, so disable. 41 42 #pragma GCC diagnostic ignored "-Wdangling-pointer" 43 #endif // __GNUC__ >= 12 44 42 45 Planet rp = fromInt( countof( Planet ) - 1 ); // non-random for test suite 46 47 #if __GNUC__ >= 12 // valid GNU compiler diagnostic ? 43 48 #pragma GCC diagnostic pop 49 #endif // __GNUC__ >= 12 44 50 45 51 choose( rp ) { // implicit breaks
Note:
See TracChangeset
for help on using the changeset viewer.