diff --git a/sys/src/cmd/mothra/forms.c b/sys/src/cmd/mothra/forms.c index 3c8a8fd48..39afa62d4 100644 --- a/sys/src/cmd/mothra/forms.c +++ b/sys/src/cmd/mothra/forms.c @@ -3,6 +3,7 @@ #include #include #include +#include "rtext.h" #include "mothra.h" #include "html.h" @@ -357,7 +358,7 @@ char *seloption(Field *f){ } void mkfieldpanel(Rtext *t){ Action *a; - Panel *win, *scrl, *menu, *pop, *button; + Panel *win, *scrl; Field *f; if((a = t->user) == nil) diff --git a/sys/src/cmd/mothra/getpix.c b/sys/src/cmd/mothra/getpix.c index 0ab52afc5..ed4a71b0b 100644 --- a/sys/src/cmd/mothra/getpix.c +++ b/sys/src/cmd/mothra/getpix.c @@ -23,7 +23,6 @@ char *pixcmd[]={ }; void getimage(Rtext *t, Www *w){ - int pfd[2]; Action *ap; Url *url; Image *b; @@ -64,6 +63,7 @@ void getimage(Rtext *t, Www *w){ s += sprint(s, " -x %d", ap->width); if(ap->height>0) s += sprint(s, " -y %d", ap->height); + USED(s); if((fd = pipeline(fd, buf)) < 0) goto Err; } diff --git a/sys/src/cmd/mothra/html.h b/sys/src/cmd/mothra/html.h index b32dd0b5c..7393f6e6f 100644 --- a/sys/src/cmd/mothra/html.h +++ b/sys/src/cmd/mothra/html.h @@ -225,3 +225,7 @@ void endform(Hglob *); char *pl_getattr(Pair *, char *); int pl_hasattr(Pair *, char *); void pl_htmloutput(Hglob *, int, char *, Field *); + +#pragma incomplete Form +#pragma incomplete Field + diff --git a/sys/src/cmd/mothra/mkfile b/sys/src/cmd/mothra/mkfile index da9a2f23b..1340e43ce 100644 --- a/sys/src/cmd/mothra/mkfile +++ b/sys/src/cmd/mothra/mkfile @@ -16,7 +16,7 @@ HFILES=mothra.h html.h libpanel/panel.h libpanel/rtext.h BIN=/$objtype/bin