mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
-Wall cleanups (removed unused vars, no 'code has no effect' warnings)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9df466b287
commit
4e13d36561
20 changed files with 35 additions and 62 deletions
|
@ -137,10 +137,10 @@ void xfree _((void*));
|
|||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
#if defined(sparc) || defined(__sparc__)
|
||||
static inline void
|
||||
flush_register_windows(void)
|
||||
{
|
||||
#if defined(sparc) || defined(__sparc__)
|
||||
# if defined(__sparc_v9__) || defined(__arch64__)
|
||||
asm volatile ("flushw" : :);
|
||||
# elif defined(linux) || defined(__linux__)
|
||||
|
@ -148,11 +148,9 @@ flush_register_windows(void)
|
|||
# else /* Solaris, OpenBSD, NetBSD, etc. */
|
||||
asm volatile ("ta 0x03");
|
||||
# endif /* trap always to flush register windows if we are on a Sparc system */
|
||||
#endif
|
||||
}
|
||||
#define FLUSH_REGISTER_WINDOWS flush_register_windows()
|
||||
#else /* Not a sparc, so */
|
||||
#define FLUSH_REGISTER_WINDOWS NULL
|
||||
#endif
|
||||
|
||||
#if defined(DOSISH)
|
||||
#define PATH_SEP ";"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue