diff mbox series

[committed] testsuite: remove unused dg-line directive

Message ID 20200113213911.24858-1-dmalcolm@redhat.com
State New
Headers show
Series [committed] testsuite: remove unused dg-line directive | expand

Commit Message

David Malcolm Jan. 13, 2020, 9:39 p.m. UTC
On Mon, 2020-01-13 at 10:46 +0100, Rainer Orth wrote:
> Hi David,
> 
> > On Fri, 2020-01-10 at 08:38 -0700, Jeff Law wrote:
> > > On Wed, 2020-01-08 at 04:02 -0500, David Malcolm wrote:

[...]

> > I've gone ahead and committed this to trunk (r280142) after testing
> > it
> > separately from the rest of the kit, given that it's theoretically
> > of
> > use to plugin authors even without the analyzer.
> 
> this patch (gcc.dg/plugin/diagnostic-test-paths-2.c in particular)
> caused DejaGnu to complain:
> 
> WARNING: dg-line var PyList_New defined, but not used
> 
> 	Rainer
>

Oops; sorry.  This was copy&paste error on my part.

Fixed by the following (successfully regrtested and manually inspected).

I've pushed it to master (as 20571289868b98dfff95f754fa174f395dec00af)

Thanks
Dave


gcc/testsuite/ChangeLog:
	* gcc.dg/plugin/diagnostic-test-paths-2.c: Remove unused dg-line
	directive.
---
 gcc/testsuite/gcc.dg/plugin/diagnostic-test-paths-2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/plugin/diagnostic-test-paths-2.c b/gcc/testsuite/gcc.dg/plugin/diagnostic-test-paths-2.c
index 391aeb9ec30..946a234dd23 100644
--- a/gcc/testsuite/gcc.dg/plugin/diagnostic-test-paths-2.c
+++ b/gcc/testsuite/gcc.dg/plugin/diagnostic-test-paths-2.c
@@ -22,7 +22,7 @@  make_a_list_of_random_ints_badly(PyObject *self,
     return NULL;
   }
 
-  list = PyList_New(0); /* { dg-line PyList_New } */
+  list = PyList_New(0);
 	
   for (i = 0; i < count; i++) {
     item = PyLong_FromLong(random());