aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/3/cast.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-04-10 11:20:35 +0900
committerKoichi Sasada <ko1@atdot.net>2020-04-10 14:53:25 +0900
commit443389effc37308ce1a3c3a840082a344fc6af56 (patch)
treedb47722822c73d30be82410b880fda0fcb14a199 /include/ruby/3/cast.h
parent63a5412db7138297a2e7513067ef80dad7a3b4b4 (diff)
downloadruby-443389effc37308ce1a3c3a840082a344fc6af56.tar.gz
reduce duplicate include.
Without this patch, 20k files are opened (openat syscall) because of duplicate includes. This patch reduced it to 3k and build time was reduced compile time of range.o from 15sec -> 3sec on my machine. [Bug #16772]
Diffstat (limited to 'include/ruby/3/cast.h')
-rw-r--r--include/ruby/3/cast.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/ruby/3/cast.h b/include/ruby/3/cast.h
index d9725ce17d..10caa809e5 100644
--- a/include/ruby/3/cast.h
+++ b/include/ruby/3/cast.h
@@ -23,9 +23,6 @@
* public headers. They could be used from C++, and C-style casts could issue
* warnings. Ruby internals are pure C so they should not bother.
*/
-#include "ruby/3/compiler_since.h"
-#include "ruby/3/has/warning.h"
-#include "ruby/3/warning_push.h"
#if defined(RUBY3_CAST)
# /* Take that. */