aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fossil
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2014-10-21 14:22:12 +0200
committerDavid du Colombier <0intro@gmail.com>2014-10-21 14:22:12 +0200
commit6c7443a65369d0bd236d9eb19e59df6639c91eec (patch)
tree8e4d69ccb99c8d230fe264f836daa62fb8004b24 /src/cmd/fossil
parent2763a6d8324fc5e1296e9a50a067ec04d52c581f (diff)
downloadplan9port-6c7443a65369d0bd236d9eb19e59df6639c91eec.tar.gz
plan9port-6c7443a65369d0bd236d9eb19e59df6639c91eec.tar.bz2
plan9port-6c7443a65369d0bd236d9eb19e59df6639c91eec.zip
fix clang 3.4 warnings and ignore uninteresting ones
fixed warnings: src/cmd/fossil/disk.c:37:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/cmd/fossil/disk.c:38:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/cmd/fossil/disk.c:39:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/cmd/fossil/disk.c:40:13: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/cmd/fossil/disk.c:41:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/libndb/ndbreorder.c:41:55: warning: for loop has empty body [-Wempty-body] ignored warnings: src/cmd/acid/dbg.y:393:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/lex/parser.y:886:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/rc/syn.y:303:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/units.y:1003:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/libregexp/regcomp.c:19:16: warning: variable 'reprog' is not needed and will not be emitted [-Wunneeded-internal-declaration] LGTM=rsc R=rsc https://codereview.appspot.com/158250043
Diffstat (limited to 'src/cmd/fossil')
-rw-r--r--src/cmd/fossil/disk.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/fossil/disk.c b/src/cmd/fossil/disk.c
index 04ea5cdd..61370dd8 100644
--- a/src/cmd/fossil/disk.c
+++ b/src/cmd/fossil/disk.c
@@ -34,11 +34,11 @@ struct Disk {
/* keep in sync with Part* enum in dat.h */
static char *partname[] = {
- [PartError] "error",
- [PartSuper] "super",
- [PartLabel] "label",
- [PartData] "data",
- [PartVenti] "venti",
+ [PartError] = "error",
+ [PartSuper] = "super",
+ [PartLabel] = "label",
+ [PartData] = "data",
+ [PartVenti] = "venti",
};
Disk *