Changes in libcfa/src/stdhdr/setjmp.h [85a2c3f:bf71cfd]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/stdhdr/setjmp.h
r85a2c3f rbf71cfd 10 10 // Created On : Mon Jul 4 23:25:26 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Feb 3 21:53:28 202213 // Update Count : 1 812 // Last Modified On : Tue Jul 5 20:38:33 2016 13 // Update Count : 12 14 14 // 15 15 16 // pthread.h and setjmp.h cannot agree on the type of __sigsetjmp:17 //18 // extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __attribute__ ((__nothrow__));19 // extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) __attribute__ ((__nothrow__));20 //21 // With -Wall, gcc-11 warns about the disagreement unless the CPP directive22 //23 // # 1 "/usr/include/pthread.h" 1 3 424 //25 // appears, which appears to be witchcraft. Unfortunately, this directive is removed by the CFA preprocessor, so the26 // batchtest fails because of the spurious warning message. Hence, the warning is elided.27 28 16 extern "C" { 29 #if defined(__GNUC__) && __GNUC__ == 1130 #pragma GCC diagnostic push31 #pragma GCC diagnostic ignored "-Warray-parameter"32 #endif // defined(__GNUC__) && __GNUC__ == 1133 34 17 #include_next <setjmp.h> // has internal check for multiple expansion 35 36 #if defined(__GNUC__) && __GNUC__ == 1137 #pragma GCC diagnostic pop38 #endif // defined(__GNUC__) && __GNUC__ == 1139 18 } // extern "C" 40 19 41 20 // Local Variables: // 21 // tab-width: 4 // 42 22 // mode: c++ // 23 // compile-command: "make install" // 43 24 // End: //
Note:
See TracChangeset
for help on using the changeset viewer.