remove the code to silence lint

Warning facilities on recent compilers are incredibly improved,
so the code to silence "good-old" lint is much less sense.
This commit is contained in:
SHIRAKATA Kentaro
2022-11-17 18:34:37 +09:00
committed by PatR
parent 7d55e71d24
commit 0d441b0c2f
13 changed files with 4 additions and 76 deletions

View File

@@ -73,17 +73,12 @@ rn2_on_display_rng(register int x)
#else /* USE_ISAAC64 */
/* "Rand()"s definition is determined by [OS]conf.h */
#if defined(LINT) && defined(UNIX) /* rand() is long... */
extern int rand(void);
#define RND(x) (rand() % x)
#else /* LINT */
#if defined(UNIX) || defined(RANDOM)
#define RND(x) ((int) (Rand() % (long) (x)))
#else
/* Good luck: the bottom order bits are cyclic. */
#define RND(x) ((int) ((Rand() >> 3) % (x)))
#endif
#endif /* LINT */
int
rn2_on_display_rng(register int x)
{
@@ -216,13 +211,8 @@ rne(register int x)
int
rnz(int i)
{
#ifdef LINT
int x = i;
int tmp = 1000;
#else
register long x = (long) i;
register long tmp = 1000L;
#endif
tmp += rn2(1000);
tmp *= rne(4);