зеркало из https://github.com/github/ruby.git
-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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b343c53db0
Коммит
7edb0a275c
|
@ -770,6 +770,7 @@ AS_IF([test "$GCC:${warnflags+set}:no" = yes::no], [
|
|||
-Werror=division-by-zero \
|
||||
-Werror=deprecated-declarations \
|
||||
-Werror=misleading-indentation \
|
||||
-Wno-overlength-strings \
|
||||
-Wno-packed-bitfield-compat \
|
||||
-Wsuggest-attribute=noreturn \
|
||||
-Wsuggest-attribute=format \
|
||||
|
|
|
@ -16,12 +16,6 @@
|
|||
#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
|
||||
|
|
Загрузка…
Ссылка в новой задаче