File tree 1 file changed +0
-15
lines changed
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 96
96
# endif
97
97
#endif
98
98
99
- // For CUDA, GCC7, GCC8 (and maybe some other platforms):
100
- // PYBIND11_NOINLINE_FORCED is incompatible with `-Wattributes -Werror`.
101
- // When defining PYBIND11_NOINLINE_FORCED, it is best to also use
102
- // `-Wno-attributes` (or not to use `-Werror` and ignore the warnings).
103
- #if !defined(PYBIND11_NOINLINE_FORCED) && \
104
- (defined(__CUDACC__) || \
105
- (defined(__GNUC__) && (__GNUC__ == 7 || __GNUC__ == 8 )))
106
- # define PYBIND11_NOINLINE_DISABLED
107
- #endif
108
-
109
99
// The PYBIND11_NOINLINE macro is for function DEFINITIONS.
110
100
// In contrast, FORWARD DECLARATIONS should never use this macro:
111
101
// https://stackoverflow.com/questions/9317473/forward-declaration-of-inline-functions
117
107
# define PYBIND11_NOINLINE __attribute__ ((noinline)) inline
118
108
#endif
119
109
120
- // DECISION TO BE MADE before this PR is merged:
121
- // ----------------------------------------------------------------------------
122
- // This code and the 9 x 2 pragma blocks referring to
123
- // PYBIND11_NOINLINE_GCC_PRAGMA_ATTRIBUTES_NEEDED could be purged.
124
- // ----------------------------------------------------------------------------
125
110
#if !defined(PYBIND11_NOINLINE_DISABLED)
126
111
# if (defined(__CUDACC__) || (defined(__GNUC__) && (__GNUC__ == 7 || __GNUC__ == 8))) \
127
112
&& !defined(PYBIND11_NOINLINE_GCC_PRAGMA_ATTRIBUTES_NEEDED)
You can’t perform that action at this time.
0 commit comments