mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress maybe-uninitialized warning on mingw
The compilation time pragma seems not applied to inline functions expanded by the link time optimization. The local variable `mi` in thread_win32.c:native_thread_init_stack is warned.
This commit is contained in:
parent
8c10fd2583
commit
601c67e42c
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,9 @@ else
|
|||
DLL_BASE_NAME := $(RUBY_SO_NAME)
|
||||
DLLWRAP += -mno-cygwin
|
||||
VPATH := $(VPATH):$(srcdir)/win32
|
||||
ifneq ($(filter -flto%,$(LDFLAGS)),)
|
||||
miniruby$(EXEEXT): XLDFLAGS += -Wno-maybe-uninitialized
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(ENABLE_SHARED),yes)
|
||||
|
|
Loading…
Reference in a new issue