diff options
author | Raed Rizqie <[email protected]> | 2024-08-16 13:51:21 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-16 14:51:21 +0900 |
commit | 018bd07f07e43a5be8ed94cfbcaac3c742b30b0a (patch) | |
tree | 798769b148617bcda88e551a527c807e1a1de18b /thread_win32.c | |
parent | c06fbb192f61e3b7af82c0c99a062a4e3938f9aa (diff) |
Fix some warnings
* Fix unused functions when no `mmap`.
```
shape.c:285:1: warning: unused function 'redblack_insert' [-Wunused-function]
285 | redblack_insert(redblack_node_t * tree, ID key, rb_shape_t * value)
| ^~~~~~~~~~~~~~~
```
* Fix unknown warning group '-Wmaybe-uninitialized' with clang.
```
thread_win32.c:596:1: warning: unknown warning group '-Wmaybe-uninitialized', ignored [-Wunknown-warning-option]
596 | COMPILER_WARNING_IGNORED(-Wmaybe-uninitialized)
| ^
```
Co-authored-by: Nobuyoshi Nakada <[email protected]>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11376
Merged-By: nobu <[email protected]>
Diffstat (limited to 'thread_win32.c')
-rw-r--r-- | thread_win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_win32.c b/thread_win32.c index 74015b463b..1e2d4bdd19 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -589,7 +589,7 @@ rb_native_cond_destroy(rb_nativethread_cond_t *cond) {if (!(expr)) {rb_bug("err: %lu - %s", GetLastError(), #expr);}} COMPILER_WARNING_PUSH -#if defined(__GNUC__) +#if __has_warning("-Wmaybe-uninitialized") COMPILER_WARNING_IGNORED(-Wmaybe-uninitialized) #endif static inline SIZE_T |