As suspected clang/Linux have it's own sort of warns ^^
This commit is contained in:
parent
0f7eaacc5f
commit
e3b4856beb
@ -18,6 +18,9 @@
|
|||||||
#include "booth.h"
|
#include "booth.h"
|
||||||
#include "y.tab.h"
|
#include "y.tab.h"
|
||||||
|
|
||||||
|
/* fileno is not C89 and can be missing sometimes. */
|
||||||
|
int fileno(FILE *stream);
|
||||||
|
|
||||||
int lineno = 1;
|
int lineno = 1;
|
||||||
extern char *iname;
|
extern char *iname;
|
||||||
%}
|
%}
|
||||||
|
|||||||
@ -24,6 +24,8 @@ void outbyte(int n);
|
|||||||
void patbyte(int n);
|
void patbyte(int n);
|
||||||
void hashpatterns();
|
void hashpatterns();
|
||||||
|
|
||||||
|
#define IsAscii(_c) (((_c) & ~0x7f) == 0)
|
||||||
|
|
||||||
char * myalloc(int n)
|
char * myalloc(int n)
|
||||||
{
|
{
|
||||||
register char *p;
|
register char *p;
|
||||||
@ -604,7 +606,7 @@ void finishio()
|
|||||||
fprintf(cfile,"\t\"");
|
fprintf(cfile,"\t\"");
|
||||||
while (*p) {
|
while (*p) {
|
||||||
register int c = (*p) & BMASK;
|
register int c = (*p) & BMASK;
|
||||||
if (! isascii(c) || iscntrl(c)) {
|
if (! IsAscii(c) || iscntrl(c)) {
|
||||||
/* The next line used to have (c>>6)&03,
|
/* The next line used to have (c>>6)&03,
|
||||||
but this triggered a bug in GCC 2.4.5
|
but this triggered a bug in GCC 2.4.5
|
||||||
on SPARC.
|
on SPARC.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user