Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: quote placeholders in messages for...



details:   https://anonhg.NetBSD.org/src/rev/5d4b7234d5b7
branches:  trunk
changeset: 982315:5d4b7234d5b7
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Apr 09 20:12:00 2021 +0000

description:
lint: quote placeholders in messages for unused variables

diffstat:

 tests/usr.bin/xlint/lint1/d_c99_bool_strict.exp          |   6 +++---
 tests/usr.bin/xlint/lint1/d_c99_union_cast.exp           |   2 +-
 tests/usr.bin/xlint/lint1/d_cvt_constant.exp             |   2 +-
 tests/usr.bin/xlint/lint1/d_decl_old_style_arguments.exp |   8 ++++----
 tests/usr.bin/xlint/lint1/d_fold_test.exp                |  12 ++++++------
 tests/usr.bin/xlint/lint1/d_init_pop_member.exp          |   2 +-
 tests/usr.bin/xlint/lint1/msg_019.exp                    |   2 +-
 tests/usr.bin/xlint/lint1/msg_050.exp                    |   2 +-
 tests/usr.bin/xlint/lint1/msg_051.exp                    |   6 +++---
 tests/usr.bin/xlint/lint1/msg_057.exp                    |   6 +++---
 tests/usr.bin/xlint/lint1/msg_084.exp                    |   2 +-
 tests/usr.bin/xlint/lint1/msg_096.exp                    |   2 +-
 tests/usr.bin/xlint/lint1/msg_109.exp                    |   2 +-
 tests/usr.bin/xlint/lint1/msg_114.exp                    |   2 +-
 tests/usr.bin/xlint/lint1/msg_126.exp                    |   6 +++---
 tests/usr.bin/xlint/lint1/msg_170.exp                    |   2 +-
 tests/usr.bin/xlint/lint1/msg_189.c                      |   4 ++--
 tests/usr.bin/xlint/lint1/msg_189.exp                    |   2 +-
 tests/usr.bin/xlint/lint1/msg_191.c                      |   4 ++--
 tests/usr.bin/xlint/lint1/msg_191.exp                    |   2 +-
 tests/usr.bin/xlint/lint1/msg_192.c                      |   4 ++--
 tests/usr.bin/xlint/lint1/msg_192.exp                    |   4 ++--
 tests/usr.bin/xlint/lint1/msg_204.exp                    |  12 ++++++------
 tests/usr.bin/xlint/lint1/msg_231.c                      |   4 ++--
 tests/usr.bin/xlint/lint1/msg_231.exp                    |   4 ++--
 usr.bin/xlint/lint1/decl.c                               |  12 ++++++------
 usr.bin/xlint/lint1/err.c                                |  10 +++++-----
 27 files changed, 63 insertions(+), 63 deletions(-)

diffs (truncated from 372 to 300 lines):

diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/d_c99_bool_strict.exp
--- a/tests/usr.bin/xlint/lint1/d_c99_bool_strict.exp   Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_bool_strict.exp   Fri Apr 09 20:12:00 2021 +0000
@@ -31,7 +31,7 @@
 d_c99_bool_strict.c(259): error: return value type mismatch (_Bool) and (int) [211]
 d_c99_bool_strict.c(265): error: return value type mismatch (_Bool) and (int) [211]
 d_c99_bool_strict.c(271): error: return value type mismatch (_Bool) and (pointer) [211]
-d_c99_bool_strict.c(269): warning: argument p unused in function strict_bool_conversion_return_pointer [231]
+d_c99_bool_strict.c(269): warning: argument 'p' unused in function 'strict_bool_conversion_return_pointer' [231]
 d_c99_bool_strict.c(277): error: return value type mismatch (char) and (_Bool) [211]
 d_c99_bool_strict.c(283): error: return value type mismatch (char) and (_Bool) [211]
 d_c99_bool_strict.c(301): error: argument #2 expects 'int', gets passed '_Bool' [334]
@@ -53,7 +53,7 @@
 d_c99_bool_strict.c(353): error: operands of '=' have incompatible types (unsigned int != _Bool) [107]
 d_c99_bool_strict.c(354): error: operands of '=' have incompatible types (double != _Bool) [107]
 d_c99_bool_strict.c(355): error: operands of '=' have incompatible types (pointer != _Bool) [107]
-d_c99_bool_strict.c(345): warning: argument b unused in function strict_bool_conversion_from_bool_to_scalar [231]
+d_c99_bool_strict.c(345): warning: argument 'b' unused in function 'strict_bool_conversion_from_bool_to_scalar' [231]
 d_c99_bool_strict.c(367): warning: constant in conditional context [161]
 d_c99_bool_strict.c(368): warning: statement not reached [193]
 d_c99_bool_strict.c(370): warning: constant in conditional context [161]
@@ -159,7 +159,7 @@
 d_c99_bool_strict.c(663): error: operands of '=' have incompatible types (_Bool != int) [107]
 d_c99_bool_strict.c(671): error: operands of '=' have incompatible types (_Bool != int) [107]
 d_c99_bool_strict.c(678): error: operands of '=' have incompatible types (_Bool != int) [107]
-d_c99_bool_strict.c(653): warning: argument flags unused in function strict_bool_bitwise_and_enum [231]
+d_c99_bool_strict.c(653): warning: argument 'flags' unused in function 'strict_bool_bitwise_and_enum' [231]
 d_c99_bool_strict.c(717): error: operands of '==' have incompatible types (_Bool != int) [107]
 d_c99_bool_strict.c(729): warning: expression has null effect [129]
 d_c99_bool_strict.c(741): error: right operand of '+' must not be bool [337]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/d_c99_union_cast.exp
--- a/tests/usr.bin/xlint/lint1/d_c99_union_cast.exp    Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_union_cast.exp    Fri Apr 09 20:12:00 2021 +0000
@@ -1,1 +1,1 @@
-d_c99_union_cast.c(19): warning: a unused in function foo [192]
+d_c99_union_cast.c(19): warning: 'a' unused in function 'foo' [192]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/d_cvt_constant.exp
--- a/tests/usr.bin/xlint/lint1/d_cvt_constant.exp      Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_cvt_constant.exp      Fri Apr 09 20:12:00 2021 +0000
@@ -1,1 +1,1 @@
-d_cvt_constant.c(8): warning: x set but not used in function main [191]
+d_cvt_constant.c(8): warning: 'x' set but not used in function 'main' [191]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/d_decl_old_style_arguments.exp
--- a/tests/usr.bin/xlint/lint1/d_decl_old_style_arguments.exp  Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_decl_old_style_arguments.exp  Fri Apr 09 20:12:00 2021 +0000
@@ -1,6 +1,6 @@
 d_decl_old_style_arguments.c(14): warning: argument type defaults to 'int': def [32]
 d_decl_old_style_arguments.c(14): error: parameter mismatch: 3 declared, 4 defined [51]
-d_decl_old_style_arguments.c(10): warning: argument num unused in function func [231]
-d_decl_old_style_arguments.c(10): warning: argument ptr unused in function func [231]
-d_decl_old_style_arguments.c(10): warning: argument dbl unused in function func [231]
-d_decl_old_style_arguments.c(10): warning: argument def unused in function func [231]
+d_decl_old_style_arguments.c(10): warning: argument 'num' unused in function 'func' [231]
+d_decl_old_style_arguments.c(10): warning: argument 'ptr' unused in function 'func' [231]
+d_decl_old_style_arguments.c(10): warning: argument 'dbl' unused in function 'func' [231]
+d_decl_old_style_arguments.c(10): warning: argument 'def' unused in function 'func' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/d_fold_test.exp
--- a/tests/usr.bin/xlint/lint1/d_fold_test.exp Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_fold_test.exp Fri Apr 09 20:12:00 2021 +0000
@@ -1,14 +1,14 @@
 d_fold_test.c(59): error: controlling expressions must have scalar type [204]
-d_fold_test.c(59): warning: argument s unused in function if_struct [231]
+d_fold_test.c(59): warning: argument 's' unused in function 'if_struct' [231]
 d_fold_test.c(60): error: controlling expressions must have scalar type [204]
-d_fold_test.c(60): warning: argument u unused in function if_union [231]
+d_fold_test.c(60): warning: argument 'u' unused in function 'if_union' [231]
 d_fold_test.c(65): error: controlling expressions must have scalar type [204]
-d_fold_test.c(65): warning: argument s unused in function while_struct [231]
+d_fold_test.c(65): warning: argument 's' unused in function 'while_struct' [231]
 d_fold_test.c(66): error: controlling expressions must have scalar type [204]
 d_fold_test.c(66): warning: end-of-loop code not reached [223]
-d_fold_test.c(66): warning: argument s unused in function for_struct [231]
+d_fold_test.c(66): warning: argument 's' unused in function 'for_struct' [231]
 d_fold_test.c(67): error: controlling expressions must have scalar type [204]
-d_fold_test.c(67): warning: argument s unused in function do_while_struct [231]
+d_fold_test.c(67): warning: argument 's' unused in function 'do_while_struct' [231]
 d_fold_test.c(70): error: first operand must have scalar type, op ? : [170]
 d_fold_test.c(70): warning: function conditional_struct expects to return value [214]
-d_fold_test.c(70): warning: argument s unused in function conditional_struct [231]
+d_fold_test.c(70): warning: argument 's' unused in function 'conditional_struct' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/d_init_pop_member.exp
--- a/tests/usr.bin/xlint/lint1/d_init_pop_member.exp   Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_init_pop_member.exp   Fri Apr 09 20:12:00 2021 +0000
@@ -1,1 +1,1 @@
-d_init_pop_member.c(38): warning: st set but not used in function func [191]
+d_init_pop_member.c(38): warning: 'st' set but not used in function 'func' [191]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_019.exp
--- a/tests/usr.bin/xlint/lint1/msg_019.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_019.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -2,5 +2,5 @@
 msg_019.c(8): error: void type for 'unit_variable' [19]
 msg_019.c(11): error: void parameter cannot have name: parameter [61]
 msg_019.c(13): error: void type for 'local_variable' [19]
-msg_019.c(11): warning: argument parameter unused in function function [231]
+msg_019.c(11): warning: argument 'parameter' unused in function 'function' [231]
 msg_019.c(8): warning: static variable unit_variable unused [226]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_050.exp
--- a/tests/usr.bin/xlint/lint1/msg_050.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_050.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,2 +1,2 @@
 msg_050.c(11): warning: a function is declared as an argument: f [50]
-msg_050.c(10): warning: argument f unused in function example [231]
+msg_050.c(10): warning: argument 'f' unused in function 'example' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_051.exp
--- a/tests/usr.bin/xlint/lint1/msg_051.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_051.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,4 +1,4 @@
 msg_051.c(12): error: parameter mismatch: 2 declared, 3 defined [51]
-msg_051.c(10): warning: argument a unused in function example [231]
-msg_051.c(10): warning: argument b unused in function example [231]
-msg_051.c(10): warning: argument c unused in function example [231]
+msg_051.c(10): warning: argument 'a' unused in function 'example' [231]
+msg_051.c(10): warning: argument 'b' unused in function 'example' [231]
+msg_051.c(10): warning: argument 'c' unused in function 'example' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_057.exp
--- a/tests/usr.bin/xlint/lint1/msg_057.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_057.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,6 +1,6 @@
 msg_057.c(10): warning: enumeration constant hides parameter: red [57]
 msg_057.c(10): warning: enumeration constant hides parameter: green [57]
 msg_057.c(11): warning: enumeration constant hides parameter: blue [57]
-msg_057.c(7): warning: argument red unused in function rgb [231]
-msg_057.c(7): warning: argument green unused in function rgb [231]
-msg_057.c(7): warning: argument blue unused in function rgb [231]
+msg_057.c(7): warning: argument 'red' unused in function 'rgb' [231]
+msg_057.c(7): warning: argument 'green' unused in function 'rgb' [231]
+msg_057.c(7): warning: argument 'blue' unused in function 'rgb' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_084.exp
--- a/tests/usr.bin/xlint/lint1/msg_084.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_084.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,2 +1,2 @@
 msg_084.c(6): warning: ANSI C requires formal parameter before '...' [84]
-msg_084.c(10): warning: argument fmt unused in function ok_ellipsis [231]
+msg_084.c(10): warning: argument 'fmt' unused in function 'ok_ellipsis' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_096.exp
--- a/tests/usr.bin/xlint/lint1/msg_096.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_096.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,3 +1,3 @@
 msg_096.c(21): error: cannot dereference non-pointer type [96]
 msg_096.c(21): warning: function unary_asterisk expects to return value [214]
-msg_096.c(19): warning: argument i unused in function unary_asterisk [231]
+msg_096.c(19): warning: argument 'i' unused in function 'unary_asterisk' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_109.exp
--- a/tests/usr.bin/xlint/lint1/msg_109.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_109.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,3 +1,3 @@
 msg_109.c(9): error: void type illegal in expression [109]
 msg_109.c(9): warning: function example expects to return value [214]
-msg_109.c(7): warning: argument arg unused in function example [231]
+msg_109.c(7): warning: argument 'arg' unused in function 'example' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_114.exp
--- a/tests/usr.bin/xlint/lint1/msg_114.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_114.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,4 +1,4 @@
 msg_114.c(9): error: operand of 'x++' must be lvalue [114]
 msg_114.c(17): error: operand of 'x++' has invalid type (array) [108]
 msg_114.c(19): error: operand of 'x++' must be lvalue [114]
-msg_114.c(7): warning: argument a unused in function example [231]
+msg_114.c(7): warning: argument 'a' unused in function 'example' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_126.exp
--- a/tests/usr.bin/xlint/lint1/msg_126.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_126.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,5 +1,5 @@
 msg_126.c(9): error: incompatible types 'pointer to void' and 'double' in conditional [126]
 msg_126.c(9): warning: function max expects to return value [214]
-msg_126.c(7): warning: argument cond unused in function max [231]
-msg_126.c(7): warning: argument ptr unused in function max [231]
-msg_126.c(7): warning: argument dbl unused in function max [231]
+msg_126.c(7): warning: argument 'cond' unused in function 'max' [231]
+msg_126.c(7): warning: argument 'ptr' unused in function 'max' [231]
+msg_126.c(7): warning: argument 'dbl' unused in function 'max' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_170.exp
--- a/tests/usr.bin/xlint/lint1/msg_170.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_170.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,3 +1,3 @@
 msg_170.c(13): error: first operand must have scalar type, op ? : [170]
 msg_170.c(13): warning: function example expects to return value [214]
-msg_170.c(11): warning: argument num unused in function example [231]
+msg_170.c(11): warning: argument 'num' unused in function 'example' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_189.c
--- a/tests/usr.bin/xlint/lint1/msg_189.c       Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_189.c       Fri Apr 09 20:12:00 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg_189.c,v 1.3 2021/03/28 15:36:37 rillig Exp $       */
+/*     $NetBSD: msg_189.c,v 1.4 2021/04/09 20:12:01 rillig Exp $       */
 # 3 "msg_189.c"
 
 /* Test for message: assignment of struct/union illegal in traditional C [189] */
@@ -16,5 +16,5 @@
 
        a.member = 3;
        b = a;                  /* message 189 is not triggered anymore */
-       /* expect-1: b set but not used in function example */
+       /* expect-1: 'b' set but not used in function 'example' */
 }
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_189.exp
--- a/tests/usr.bin/xlint/lint1/msg_189.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_189.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,1 +1,1 @@
-msg_189.c(18): warning: b set but not used in function example [191]
+msg_189.c(18): warning: 'b' set but not used in function 'example' [191]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_191.c
--- a/tests/usr.bin/xlint/lint1/msg_191.c       Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_191.c       Fri Apr 09 20:12:00 2021 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: msg_191.c,v 1.2 2021/01/30 17:56:29 rillig Exp $       */
+/*     $NetBSD: msg_191.c,v 1.3 2021/04/09 20:12:01 rillig Exp $       */
 # 3 "msg_191.c"
 
-// Test for message: %s set but not used in function %s [191]
+// Test for message: '%s' set but not used in function '%s' [191]
 
 void
 example(void)
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_191.exp
--- a/tests/usr.bin/xlint/lint1/msg_191.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_191.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,1 +1,1 @@
-msg_191.c(11): warning: local set but not used in function example [191]
+msg_191.c(11): warning: 'local' set but not used in function 'example' [191]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_192.c
--- a/tests/usr.bin/xlint/lint1/msg_192.c       Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_192.c       Fri Apr 09 20:12:00 2021 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: msg_192.c,v 1.2 2021/01/30 17:56:29 rillig Exp $       */
+/*     $NetBSD: msg_192.c,v 1.3 2021/04/09 20:12:01 rillig Exp $       */
 # 3 "msg_192.c"
 
-// Test for message: %s unused in function %s [192]
+// Test for message: '%s' unused in function '%s' [192]
 
 void
 example(int param)             /* expect: 231 */
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_192.exp
--- a/tests/usr.bin/xlint/lint1/msg_192.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_192.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,2 +1,2 @@
-msg_192.c(9): warning: local unused in function example [192]
-msg_192.c(7): warning: argument param unused in function example [231]
+msg_192.c(9): warning: 'local' unused in function 'example' [192]
+msg_192.c(7): warning: argument 'param' unused in function 'example' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_204.exp
--- a/tests/usr.bin/xlint/lint1/msg_204.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_204.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,14 +1,14 @@
 msg_204.c(87): error: controlling expressions must have scalar type [204]
-msg_204.c(87): warning: argument s unused in function if_struct [231]
+msg_204.c(87): warning: argument 's' unused in function 'if_struct' [231]
 msg_204.c(88): error: controlling expressions must have scalar type [204]
-msg_204.c(88): warning: argument u unused in function if_union [231]
+msg_204.c(88): warning: argument 'u' unused in function 'if_union' [231]
 msg_204.c(93): error: controlling expressions must have scalar type [204]
-msg_204.c(93): warning: argument s unused in function while_struct [231]
+msg_204.c(93): warning: argument 's' unused in function 'while_struct' [231]
 msg_204.c(94): error: controlling expressions must have scalar type [204]
 msg_204.c(94): warning: end-of-loop code not reached [223]
-msg_204.c(94): warning: argument s unused in function for_struct [231]
+msg_204.c(94): warning: argument 's' unused in function 'for_struct' [231]
 msg_204.c(95): error: controlling expressions must have scalar type [204]
-msg_204.c(95): warning: argument s unused in function do_while_struct [231]
+msg_204.c(95): warning: argument 's' unused in function 'do_while_struct' [231]
 msg_204.c(101): error: first operand must have scalar type, op ? : [170]
 msg_204.c(101): warning: function conditional_struct expects to return value [214]
-msg_204.c(101): warning: argument s unused in function conditional_struct [231]
+msg_204.c(101): warning: argument 's' unused in function 'conditional_struct' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_231.c
--- a/tests/usr.bin/xlint/lint1/msg_231.c       Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_231.c       Fri Apr 09 20:12:00 2021 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: msg_231.c,v 1.2 2021/01/30 17:56:29 rillig Exp $       */
+/*     $NetBSD: msg_231.c,v 1.3 2021/04/09 20:12:01 rillig Exp $       */
 # 3 "msg_231.c"
 
-// Test for message: argument %s unused in function %s [231]
+// Test for message: argument '%s' unused in function '%s' [231]
 
 void
 example(int param)             /* expect: 231 */
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 tests/usr.bin/xlint/lint1/msg_231.exp
--- a/tests/usr.bin/xlint/lint1/msg_231.exp     Fri Apr 09 20:00:06 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_231.exp     Fri Apr 09 20:12:00 2021 +0000
@@ -1,2 +1,2 @@
-msg_231.c(9): warning: local unused in function example [192]
-msg_231.c(7): warning: argument param unused in function example [231]
+msg_231.c(9): warning: 'local' unused in function 'example' [192]
+msg_231.c(7): warning: argument 'param' unused in function 'example' [231]
diff -r f0aeae3d44b1 -r 5d4b7234d5b7 usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c        Fri Apr 09 20:00:06 2021 +0000
+++ b/usr.bin/xlint/lint1/decl.c        Fri Apr 09 20:12:00 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.170 2021/04/02 12:16:50 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.171 2021/04/09 20:12:00 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.170 2021/04/02 12:16:50 rillig Exp $");



Home | Main Index | Thread Index | Old Index