silence warning (andrey)

This commit is contained in:
rsc 2006-04-20 20:18:13 +00:00
parent e6dad55ae3
commit 4515de8f50
2 changed files with 7 additions and 6 deletions

View file

@ -16,7 +16,8 @@
* keyletters and options. * keyletters and options.
*/ */
#define TARGBEGIN {\ #define TARGBEGIN {\
(argv0 || (argv0 = *argv)), argv++, argc--;\ if (!argv0) argv0 = *argv; \
argv++, argc--;\
if (argv[0]) {\ if (argv[0]) {\
char *_args, *_argt;\ char *_args, *_argt;\
Rune _argc;\ Rune _argc;\

View file

@ -261,18 +261,18 @@ optimize(Reprog *pp)
case STAR: case STAR:
case PLUS: case PLUS:
case QUEST: case QUEST:
*(char **)&inst->u1.right += diff; *(char**)(void*)&inst->u1.right += diff;
break; break;
case CCLASS: case CCLASS:
case NCCLASS: case NCCLASS:
*(char **)&inst->u1.right += diff; *(char**)(void*)&inst->u1.right += diff;
cl = inst->u1.cp; cl = inst->u1.cp;
*(char **)&cl->end += diff; *(char**)(void*)&cl->end += diff;
break; break;
} }
*(char **)&inst->u2.left += diff; *(char**)(void*)&inst->u2.left += diff;
} }
*(char **)&npp->startinst += diff; *(char**)(void*)&npp->startinst += diff;
return npp; return npp;
} }