|
发表于 2007-11-21 01:30:12
|
显示全部楼层
编译pmoncfg出现如下错误
main.c: In function ‘cfcrosscheck’:
main.c:525: error: label at end of compound statement
好像是标号问题。
我修改了一下, 去掉了标号。
编译过了。
-------------------
Index: tools/pmoncfg/main.c
===================================================================
--- tools/pmoncfg/main.c (版本 71)
+++ tools/pmoncfg/main.c (工作副本)
@@ -515,13 +515,12 @@
for (pd = allpseudo; pd != NULL; pd = pd->i_next)
if (pd->i_base == dev && devminor < dev->d_umax &&
devminor >= 0)
- goto loop;
+ continue;
(void)fprintf(stderr,
"%s:%d: %s says %s on %s, but there's no %s\n",
conffile, cf->cf_lineno,
cf->cf_name, what, nv->nv_str, nv->nv_str);
errs++;
-loop:
}
return (errs);
} |
|