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.
*/
#define TARGBEGIN {\
(argv0 || (argv0 = *argv)), argv++, argc--;\
if (!argv0) argv0 = *argv; \
argv++, argc--;\
if (argv[0]) {\
char *_args, *_argt;\
Rune _argc;\

View file

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