Wconversion2.C: Fix typo.
2007-03-15 Dirk Mueller <dmueller@suse.de> * g++.dg/warn/Wconversion2.C: Fix typo. * gcc.dg/if-empty-1.c: Ditto. From-SVN: r122949
This commit is contained in:
parent
211ea3009d
commit
c123d98fc6
@ -1,3 +1,8 @@
|
||||
2007-03-15 Dirk Mueller <dmueller@suse.de>
|
||||
|
||||
* g++.dg/warn/Wconversion2.C: Fix typo.
|
||||
* gcc.dg/if-empty-1.c: Ditto.
|
||||
|
||||
2007-03-15 Richard Sandiford <richard@codesourcery.com>
|
||||
|
||||
* gcc.dg/cpp/assert4.c: Treat VxWorks as a unix target.
|
||||
|
@ -1,4 +1,4 @@
|
||||
// { dg-options "-Wconversion" }
|
||||
|
||||
void foo(const char *);
|
||||
void bar() { foo(false); } // { dg-warning "pointer type argument" }
|
||||
void bar() { foo(false); } // { dg-warning "pointer type for argument" }
|
||||
|
@ -7,7 +7,7 @@ void
|
||||
f (int x)
|
||||
{
|
||||
if (x)
|
||||
; /* { dg-warning "warning: empty body in an" } */
|
||||
; /* { dg-warning "warning: suggest braces around empty body in an" } */
|
||||
if (x)
|
||||
; /* By design we don't warn in this case. */
|
||||
else
|
||||
@ -15,7 +15,7 @@ f (int x)
|
||||
if (x)
|
||||
(void)0;
|
||||
else
|
||||
; /* { dg-warning "warning: empty body in an" } */
|
||||
; /* { dg-warning "warning: suggest braces around empty body in an" } */
|
||||
if (x)
|
||||
(void)0;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user