ruby-changes:49756
From: shyouhei <ko1@a...>
Date: Tue, 16 Jan 2018 17:35:38 +0900 (JST)
Subject: [ruby-changes:49756] shyouhei:r61874 (trunk): -Wno-overlength-strings
shyouhei 2018-01-16 17:35:33 +0900 (Tue, 16 Jan 2018) New Revision: 61874 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61874 Log: -Wno-overlength-strings as per https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/Assumptions we are officially giving up 509 characters limit of C string literal length. Modified files: trunk/configure.ac trunk/loadpath.c Index: configure.ac =================================================================== --- configure.ac (revision 61873) +++ configure.ac (revision 61874) @@ -770,6 +770,7 @@ AS_IF([test "$GCC:${warnflags+set}:no" = https://github.com/ruby/ruby/blob/trunk/configure.ac#L770 -Werror=division-by-zero \ -Werror=deprecated-declarations \ -Werror=misleading-indentation \ + -Wno-overlength-strings \ -Wno-packed-bitfield-compat \ -Wsuggest-attribute=noreturn \ -Wsuggest-attribute=format \ Index: loadpath.c =================================================================== --- loadpath.c (revision 61873) +++ loadpath.c (revision 61874) @@ -16,12 +16,6 @@ https://github.com/ruby/ruby/blob/trunk/loadpath.c#L16 #define RUBY_REVISION 0 #include "version.h" -#ifdef __clang__ -#pragma clang diagnostic ignored "-Woverlength-strings" -#elif defined(__GNUC__) && (__GNUC__ >= 5) -#pragma GCC diagnostic ignored "-Woverlength-strings" -#endif - #ifndef RUBY_ARCH #define RUBY_ARCH RUBY_PLATFORM #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/