1
0
Fork 0
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:
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

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)