From 7bd638b7a4062d774da7c96d3e926733b6a103ad Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 16 Nov 2012 17:02:39 +0000 Subject: object.c: suppress warning * object.c (rb_obj_alloc): suppress unused variable warning. * tool/gen_dummy_probes.rb: define dtrace disabling macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/gen_dummy_probes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 tool/gen_dummy_probes.rb (limited to 'tool') diff --git a/tool/gen_dummy_probes.rb b/tool/gen_dummy_probes.rb old mode 100644 new mode 100755 index 88ad2ca5bf..e7efbd6822 --- a/tool/gen_dummy_probes.rb +++ b/tool/gen_dummy_probes.rb @@ -1,4 +1,5 @@ #!/usr/bin/ruby +# -*- coding: us-ascii -*- text = ARGF.read text.upcase! @@ -7,7 +8,7 @@ text.upcase! text.gsub!(/^#PRAGMA.*$/, '') # replace the provider section with the start of the header file -text.gsub!(/PROVIDER RUBY \{/, "#ifndef\t_PROBES_H\n#define\t_PROBES_H") +text.gsub!(/PROVIDER RUBY \{/, "#ifndef\t_PROBES_H\n#define\t_PROBES_H\n#define DTRACE_PROBES_DISABLED 1\n") # finish up the #ifndef sandwich text.gsub!(/\};/, "#endif\t/* _PROBES_H */") -- cgit v1.2.3