mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
5b6bc69fd7
commit
c09c6ee579
3 changed files with 9 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* 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],
|
||||
[wflag=-Wall])
|
||||
RUBY_TRY_CFLAGS($wflag, [warnflags="$wflag${warnflags+ $warnflags}"])
|
||||
warnflags="-pedantic{warnflags+ $warnflags}"
|
||||
fi
|
||||
|
||||
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. */
|
||||
#define rb_intern(str) \
|
||||
(__builtin_constant_p(str) ? \
|
||||
__extension__ (CONST_ID_CACHE(/**/, str)) : \
|
||||
__extension__ (CONST_ID_CACHE((ID), str)) : \
|
||||
rb_intern(str))
|
||||
#define rb_intern_const(str) \
|
||||
(__builtin_constant_p(str) ? \
|
||||
|
|
Loading…
Reference in a new issue