Project

General

Profile

Actions

Bug #15069

closed

Backport "suppress warning: 'const' attribute on function returning 'void' "

Added by larskanis (Lars Kanis) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.4p296 (2018-03-28 revision 63013) [x64-mingw32]
[ruby-core:88835]

Description

The files include/ruby/intern.h and include/ruby/ruby.h are used for extension builds, and when a recent gcc is called with -Wall, the build fails. This can cause failures with mkmf for instance in pkg_config() lookup.

The resolving commit to ruby-2.5 was: https://github.com/ruby/ruby/commit/027b576b31cd12bad575b3a39476726273f58c41
Can this commit please be backported to older ruby versions?

This patch is also used for RubyInstaller-2.4.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0