From 0849ff4f17954fbb613d7809319030b522aca527 Mon Sep 17 00:00:00 2001 From: Arvid Norlander Date: Mon, 24 Nov 2008 12:45:57 -0500 Subject: [PATCH] Fix some splint warnings in feh2.c, ick.h also updated. --- src/feh2.c | 8 ++++---- src/ick.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/feh2.c b/src/feh2.c index 2790d3b..827a639 100644 --- a/src/feh2.c +++ b/src/feh2.c @@ -459,7 +459,7 @@ void prexpr(node *np, FILE *fp, int freenode); * If the order of statement-token defines in parser.y ever changes, * this will need to be reordered. */ -const char *enablersm1[MAXTYPES+1] = +/*@observer@*/ const char *enablersm1[MAXTYPES+1] = { "UNKNOWN", /* AIS: so comments can be ABSTAINED/REINSTATED */ "GETS", @@ -1594,10 +1594,10 @@ static int prunknownstr(node *np, FILE* fp) case BADCHAR: if (np->constant > 256) (void) fprintf(fp, "o%xx%x", - (int)(np->constant / 256), - (int)(np->constant % 256)); + (unsigned int)(np->constant / 256), + (unsigned int)(np->constant % 256)); else - (void) fprintf(fp, "u%x", (int)np->constant); + (void) fprintf(fp, "u%x", (unsigned int)np->constant); return 2; case US_ID: (void) fputc((char)np->constant, fp); return 0; case US_ELEM: (void) fputc(';', fp); return 1; diff --git a/src/ick.h b/src/ick.h index 60fefe3..e45231d 100644 --- a/src/ick.h +++ b/src/ick.h @@ -129,7 +129,7 @@ extern int tuplecount; /*@dependent@*/ extern tuple *optuple; /* AIS: The tuple currently being optimized */ extern const char **enablers; -extern const char *enablersm1[MAXTYPES+1]; +/*@observer@*/ extern const char *enablersm1[MAXTYPES+1]; extern const assoc vartypes[]; /* the lexical analyzer keeps copies of the source logical lines */ -- 2.43.0