diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-12-10 19:20:22 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-12-10 19:20:22 +0000 |
commit | ad7aea9b08f28848d4f3a3931b851a6144a9df9a (patch) | |
tree | 6d687bca902024df433d95f81f32f959376c6a4c /regress/usr.bin/xlint | |
parent | ae69796dac1fb78e43052e2a7fdc3c552e2a5a09 (diff) |
Match new lint warning and error format (similar to gcc's format).
Diffstat (limited to 'regress/usr.bin/xlint')
-rw-r--r-- | regress/usr.bin/xlint/test-1.c.exp | 2 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-10.c.exp | 2 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-12.c | 5 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-12.c.exp | 2 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-13.c.exp | 4 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-2.c.exp | 20 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-4.c.exp | 2 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-5.c.exp | 8 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-6.c.exp | 4 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-9.c.exp | 2 |
10 files changed, 27 insertions, 24 deletions
diff --git a/regress/usr.bin/xlint/test-1.c.exp b/regress/usr.bin/xlint/test-1.c.exp index 3a91355fcd8..fba90e98aa9 100644 --- a/regress/usr.bin/xlint/test-1.c.exp +++ b/regress/usr.bin/xlint/test-1.c.exp @@ -1,3 +1,3 @@ -test-1.c(10): warning: argument unused unused in function unusedargs +test-1.c:10: warning: argument unused unused in function unusedargs Lint pass2: unusedargs returns value which is always ignored diff --git a/regress/usr.bin/xlint/test-10.c.exp b/regress/usr.bin/xlint/test-10.c.exp index 6350782175e..2ebee3fa0fe 100644 --- a/regress/usr.bin/xlint/test-10.c.exp +++ b/regress/usr.bin/xlint/test-10.c.exp @@ -1,2 +1,2 @@ -test-10.c(17): warning: assignment of negative constant to unsigned type +test-10.c:17: warning: assignment of negative constant to unsigned type Lint pass2: diff --git a/regress/usr.bin/xlint/test-12.c b/regress/usr.bin/xlint/test-12.c index 11a43e84235..0dd7450fe95 100644 --- a/regress/usr.bin/xlint/test-12.c +++ b/regress/usr.bin/xlint/test-12.c @@ -1,4 +1,4 @@ -/* $OpenBSD: test-12.c,v 1.1 2005/12/09 04:30:58 cloder Exp $ */ +/* $OpenBSD: test-12.c,v 1.2 2005/12/10 19:20:21 cloder Exp $ */ /* * Placed in the public domain by Chad Loder <cloder@openbsd.org>. @@ -21,6 +21,9 @@ main(int argc, char *argv[]) if ((a = argc)) /* should not warn */ return 1; + for (a = 0; a < 10; a++) + a = a; + return 0; } diff --git a/regress/usr.bin/xlint/test-12.c.exp b/regress/usr.bin/xlint/test-12.c.exp index e2d0e9c0267..745d6bb836e 100644 --- a/regress/usr.bin/xlint/test-12.c.exp +++ b/regress/usr.bin/xlint/test-12.c.exp @@ -1,2 +1,2 @@ -test-12.c(16): warning: assignment in conditional context +test-12.c:16: warning: assignment in conditional context Lint pass2: diff --git a/regress/usr.bin/xlint/test-13.c.exp b/regress/usr.bin/xlint/test-13.c.exp index aeb9df3a774..da14b62e0fb 100644 --- a/regress/usr.bin/xlint/test-13.c.exp +++ b/regress/usr.bin/xlint/test-13.c.exp @@ -1,3 +1,3 @@ -test-13.c(20): warning: suspicious operator for sizeof: + -test-13.c(21): warning: suspicious operator for sizeof: CON +test-13.c:20: warning: suspicious operator for sizeof: + +test-13.c:21: warning: suspicious operator for sizeof: CON Lint pass2: diff --git a/regress/usr.bin/xlint/test-2.c.exp b/regress/usr.bin/xlint/test-2.c.exp index aad2e24e2bd..e70ea28de80 100644 --- a/regress/usr.bin/xlint/test-2.c.exp +++ b/regress/usr.bin/xlint/test-2.c.exp @@ -1,11 +1,11 @@ -test-2.c(17): warning: bitwise operation on signed value possibly nonportable -test-2.c(22): warning: bitwise operation on signed value possibly nonportable -test-2.c(22): warning: right shift of 8-bit quantity by 8 bits -test-2.c(24): warning: right shift of 8-bit quantity by 8 bits -test-2.c(27): warning: bitwise operation on signed value possibly nonportable -test-2.c(27): warning: right shift of 8-bit quantity by 9 bits -test-2.c(29): warning: right shift of 8-bit quantity by 9 bits -test-2.c(32): warning: bitwise operation on signed value possibly nonportable -test-2.c(32): warning: right shift of 8-bit quantity by 10 bits -test-2.c(34): warning: right shift of 8-bit quantity by 10 bits +test-2.c:17: warning: bitwise operation on signed value possibly nonportable +test-2.c:22: warning: bitwise operation on signed value possibly nonportable +test-2.c:22: warning: right shift of 8-bit quantity by 8 bits +test-2.c:24: warning: right shift of 8-bit quantity by 8 bits +test-2.c:27: warning: bitwise operation on signed value possibly nonportable +test-2.c:27: warning: right shift of 8-bit quantity by 9 bits +test-2.c:29: warning: right shift of 8-bit quantity by 9 bits +test-2.c:32: warning: bitwise operation on signed value possibly nonportable +test-2.c:32: warning: right shift of 8-bit quantity by 10 bits +test-2.c:34: warning: right shift of 8-bit quantity by 10 bits Lint pass2: diff --git a/regress/usr.bin/xlint/test-4.c.exp b/regress/usr.bin/xlint/test-4.c.exp index e8558e87c24..82d38580cd7 100644 --- a/regress/usr.bin/xlint/test-4.c.exp +++ b/regress/usr.bin/xlint/test-4.c.exp @@ -1,2 +1,2 @@ -test-4.c(22): warning: case ranges are illegal in ANSI C +test-4.c:22: warning: case ranges are illegal in ANSI C Lint pass2: diff --git a/regress/usr.bin/xlint/test-5.c.exp b/regress/usr.bin/xlint/test-5.c.exp index 143e0c4e9c1..73cb7cc7cb1 100644 --- a/regress/usr.bin/xlint/test-5.c.exp +++ b/regress/usr.bin/xlint/test-5.c.exp @@ -1,5 +1,5 @@ -test-5.c(34): warning: conversion to 'unsigned long long' due to prototype, arg #1 -test-5.c(35): warning: conversion of 'long long' to 'int' is out of range, arg #1 -test-5.c(36): warning: conversion to 'unsigned int' due to prototype, arg #1 -test-5.c(36): warning: conversion of negative constant to unsigned type, arg #1 +test-5.c:34: warning: conversion to 'unsigned long long' due to prototype, arg #1 +test-5.c:35: warning: conversion of 'long long' to 'int' is out of range, arg #1 +test-5.c:36: warning: conversion to 'unsigned int' due to prototype, arg #1 +test-5.c:36: warning: conversion of negative constant to unsigned type, arg #1 Lint pass2: diff --git a/regress/usr.bin/xlint/test-6.c.exp b/regress/usr.bin/xlint/test-6.c.exp index e950dfce06f..8841cf61e1d 100644 --- a/regress/usr.bin/xlint/test-6.c.exp +++ b/regress/usr.bin/xlint/test-6.c.exp @@ -1,3 +1,3 @@ -test-6.c(21): warning: left operand of '=' must be modifiable lvalue -test-6.c(23): warning: array subscript cannot be > 4: 5 +test-6.c:21: warning: left operand of '=' must be modifiable lvalue +test-6.c:23: warning: array subscript cannot be > 4: 5 Lint pass2: diff --git a/regress/usr.bin/xlint/test-9.c.exp b/regress/usr.bin/xlint/test-9.c.exp index 75eaa3f9631..1863b507d44 100644 --- a/regress/usr.bin/xlint/test-9.c.exp +++ b/regress/usr.bin/xlint/test-9.c.exp @@ -1,2 +1,2 @@ -test-9.c(15): warning: comparison of unsigned int with 0, op >= +test-9.c:15: warning: comparison of unsigned int with 0, op >= Lint pass2: |