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:
Nobuyoshi Nakada 2021-10-01 22:03:48 +09:00
parent 8c10fd2583
commit 601c67e42c
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
1 changed files with 3 additions and 0 deletions

View File

@ -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)