diff options
| author | Benoit Daloze <eregontp@gmail.com> | 2021-04-29 15:30:31 +0200 |
|---|---|---|
| committer | Benoit Daloze <eregontp@gmail.com> | 2021-05-04 14:56:55 +0200 |
| commit | d09988502ed75cae65b787865465361b675cf1ee (patch) | |
| tree | 7bd4abafa79185677541ec1420c7a8c91defb2ae /include/ruby/internal/stdalign.h | |
| parent | f108bc32af99b0802614c680e43013d828a68d29 (diff) | |
Fix -Wundef warnings for RBIMPL_HAS_BUILTIN
* See [Feature #17752]
* Defining explicitly to 0 seems the best solution, see https://github.com/ruby/ruby/pull/4428
* For example:
./include/ruby/internal/has/builtin.h:49:33: error: "RBIMPL_HAS_BUILTIN___builtin_assume" is not defined, evaluates to 0 [-Werror=undef]
49 | # define RBIMPL_HAS_BUILTIN(_) (RBIMPL_HAS_BUILTIN_ ## _)
| ^~~~~~~~~~~~~~~~~~~
./include/ruby/internal/assume.h:75:7: note: in expansion of macro ‘RBIMPL_HAS_BUILTIN’
75 | #elif RBIMPL_HAS_BUILTIN(__builtin_assume)
| ^~~~~~~~~~~~~~~~~~
Diffstat (limited to 'include/ruby/internal/stdalign.h')
0 files changed, 0 insertions, 0 deletions
