diff mbox

Warn for each missing printf argument

Message ID 1289663897.85717572@192.168.2.228
State New
Headers show

Commit Message

Nicola Pero Nov. 13, 2010, 3:58 p.m. UTC
Thanks Paolo

I committed (as obvious) the same adjustment for the identical Objective-C++ testcase
to stop the corresponding ObjC++ failure.

Thanks

Comments

Iain Sandoe Nov. 13, 2010, 4:04 p.m. UTC | #1
On 13 Nov 2010, at 15:58, Nicola Pero wrote:

> I committed (as obvious) the same adjustment for the identical  
> Objective-C++ testcase
> to stop the corresponding ObjC++ failure.

I'll sort out the corresponding amendments to -fnext-runtime fails
(I seem to recall volunteering...)

Iain
diff mbox

Patch

Index: ChangeLog
===================================================================
--- ChangeLog   (revision 166709)
+++ ChangeLog   (working copy)
@@ -1,5 +1,9 @@ 
 2010-11-13  Nicola Pero  <nicola.pero@meta-innovation.com>
 
+       * obj-c++.dg/attributes/method-format-1.mm: Adjust.
+
+2010-11-13  Nicola Pero  <nicola.pero@meta-innovation.com>
+
        * objc/compile/20060406-1.m: Fixed testcase not to try to qualify
        a pointer to an arbitrary C struct with an Objective-C protocol.
        Test various valid uses of typedef with Objective-C objects and
Index: obj-c++.dg/attributes/method-format-1.mm
===================================================================
--- obj-c++.dg/attributes/method-format-1.mm    (revision 166707)
+++ obj-c++.dg/attributes/method-format-1.mm    (working copy)
@@ -27,17 +27,17 @@  void test (LogObject *object)
 {
   [object log: 2  message: "attribute only applies to variadic functions"];
   [object log: 2  message: "attribute %s only applies to variadic functions", "'format'"];
-  [object log: 2  message: "attribute %s only applies to variadic functions"]; /* { dg-warning "too few arguments for format" } */
+  [object log: 2  message: "attribute %s only applies to variadic functions"]; /* { dg-warning "expects a matching" } */
 
   [object debug: "attribute only applies to variadic functions"];
   [object debug: "attribute %s only applies to variadic functions", "'format'"];
-  [object debug: "attribute %s only applies to variadic functions"]; /* { dg-warning "too few arguments for format" } */
+  [object debug: "attribute %s only applies to variadic functions"]; /* { dg-warning "expects a matching" } */
 
   [LogObject log: 2  message: "attribute only applies to variadic functions"];
   [LogObject log: 2  message: "attribute %s only applies to variadic functions", "'format'"];
-  [LogObject log: 2  message: "attribute %s only applies to variadic functions"]; /* { dg-warning "too few arguments for format" } */
+  [LogObject log: 2  message: "attribute %s only applies to variadic functions"]; /* { dg-warning "expects a matching" } */
 
   [LogObject debug: "attribute only applies to variadic functions"];
   [LogObject debug: "attribute %s only applies to variadic functions", "'format'"];
-  [LogObject debug: "attribute %s only applies to variadic functions"]; /* { dg-warning "too few arguments for format" } */
+  [LogObject debug: "attribute %s only applies to variadic functions"]; /* { dg-warning "expects a matching" } */
 }