diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-10-10 14:16:04 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-10-10 23:52:07 +0900 |
| commit | cd611becbbb31217575c2031682612d36f7a2fc4 (patch) | |
| tree | d95984ea1291450ec1e416a06dfb0caa1515ad7e /test/ruby | |
| parent | 3fdf0e7e6deee8a275869c1ced389f6e4d9975ea (diff) | |
[ruby/fiddle] Cast via `VALUE` function pointer between object
pointer
(https://github.com/ruby/fiddle/pull/150)
With gcc 13 and -pedantic:
```
../../../src/ext/fiddle/function.c: In function ‘function_call’:
../../../src/ext/fiddle/function.c:374:15: error: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
374 | args.fn = (void(*)(void))NUM2PTR(cfunc);
| ^
../../../src/ext/fiddle/pointer.c: In function ‘rb_fiddle_ptr_inspect’:
../../../src/ext/fiddle/pointer.c:573:84: error: ISO C forbids conversion of function pointer to object pointer type [-Wpedantic]
573 | RB_OBJ_CLASSNAME(self), (void *)data, data->ptr, data->size, (void *)data->free);
| ^
```
https://github.com/ruby/fiddle/commit/6421e317a1
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
