This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Fix line number in miss-format-1.C testscase
- From: mitchell at codesourcery dot com (Mark Mitchell)
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 4 Aug 2010 12:02:50 -0700 (PDT)
- Subject: PATCH: Fix line number in miss-format-1.C testscase
- Reply-to: mark at codesourcery dot com
This patch corrects the line number for the "not declared" error in
this test case for systems that don't have the declaration; it's
emitted on line 26, where vscanf is used.
Applied.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
2010-08-04 Daniel Gutson <dgutson@codesourcery.com>
* g++.dg/warn/miss-format-1.C: Update line number.
Index: gcc/testsuite/g++.dg/warn/miss-format-1.C
===================================================================
--- gcc/testsuite/g++.dg/warn/miss-format-1.C (revision 162871)
+++ gcc/testsuite/g++.dg/warn/miss-format-1.C (working copy)
@@ -4,7 +4,7 @@
/* { dg-options "-Wmissing-format-attribute" } */
/* { dg-options "-Wmissing-format-attribute -Wno-abi" { target arm_eabi } } */
/* VxWorks does not provide vscanf, either in kernel or RTP mode. */
-/* { dg-error "not declared" "" { target *-*-solaris2.8 *-*-vxworks* alpha*-dec-osf5* } 25 } */
+/* { dg-error "not declared" "" { target *-*-solaris2.8 *-*-vxworks* alpha*-dec-osf5* } 26 } */
#include <stdio.h>
#include <stdarg.h>