зеркало из https://github.com/github/ruby.git
* configure.in (warnflags): add -pedantic if gcc.
* include/ruby/ruby.h (rb_intern): C90 needs nonempty macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5b6bc69fd7
Коммит
c09c6ee579
|
@ -1,3 +1,10 @@
|
||||||
|
Fri May 21 17:35:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* configure.in (warnflags): add -pedantic if gcc.
|
||||||
|
|
||||||
|
* include/ruby/ruby.h (rb_intern): C90 needs nonempty macro
|
||||||
|
arguments.
|
||||||
|
|
||||||
Fri May 21 13:55:46 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri May 21 13:55:46 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (LIBRUBYARG_SHARED): shared library will not be
|
* configure.in (LIBRUBYARG_SHARED): shared library will not be
|
||||||
|
|
|
@ -386,6 +386,7 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then
|
||||||
AS_CASE([" $warnflags "],[*" -Wno-missing-field-initializers "*], [wflag=-Wextra],
|
AS_CASE([" $warnflags "],[*" -Wno-missing-field-initializers "*], [wflag=-Wextra],
|
||||||
[wflag=-Wall])
|
[wflag=-Wall])
|
||||||
RUBY_TRY_CFLAGS($wflag, [warnflags="$wflag${warnflags+ $warnflags}"])
|
RUBY_TRY_CFLAGS($wflag, [warnflags="$wflag${warnflags+ $warnflags}"])
|
||||||
|
warnflags="-pedantic{warnflags+ $warnflags}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\""
|
test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\""
|
||||||
|
|
|
@ -1080,7 +1080,7 @@ VALUE rb_id2str(ID);
|
||||||
* since gcc-2.7.2.3 at least. */
|
* since gcc-2.7.2.3 at least. */
|
||||||
#define rb_intern(str) \
|
#define rb_intern(str) \
|
||||||
(__builtin_constant_p(str) ? \
|
(__builtin_constant_p(str) ? \
|
||||||
__extension__ (CONST_ID_CACHE(/**/, str)) : \
|
__extension__ (CONST_ID_CACHE((ID), str)) : \
|
||||||
rb_intern(str))
|
rb_intern(str))
|
||||||
#define rb_intern_const(str) \
|
#define rb_intern_const(str) \
|
||||||
(__builtin_constant_p(str) ? \
|
(__builtin_constant_p(str) ? \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче