evolution-3.6.4/addressbook/printing/test-print.c

Location Tool Test ID Function Issue
test-print.c:42:2 clang-analyzer Value stored to 'shown_fields' is never read
 1 /*
 2  * This program is free software; you can redistribute it and/or
 3  * modify it under the terms of the GNU Lesser General Public
 4  * License as published by the Free Software Foundation; either
 5  * version 2 of the License, or (at your option) version 3.
 6  *
 7  * This program is distributed in the hope that it will be useful,
 8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10  * Lesser General Public License for more details.
11  *
12  * You should have received a copy of the GNU Lesser General Public
13  * License along with the program; if not, see <http://www.gnu.org/licenses/>
14  *
15  *
16  * Authors:
17  *		Chris Lahey <clahey@ximian.com>
18  *
19  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
20  *
21  */
22 
23 #ifdef HAVE_CONFIG_H
24 #include <config.h>
25 #endif
26 
27 #include <stdlib.h>
28 #include <gtk/gtk.h>
29 #include "e-contact-print.h"
30 
31 gint
32 main (gint argc,
33       gchar *argv[])
34 {
35 	GList *shown_fields = NULL;
36 
37 	gtk_init (&argc, &argv);
38 
39 	shown_fields = g_list_append (shown_fields, (gpointer) "First field");
40 	shown_fields = g_list_append (shown_fields, (gpointer) "Second field");
41 	shown_fields = g_list_append (shown_fields, (gpointer) "Third field");
42 	shown_fields = g_list_append (shown_fields, (gpointer) "Fourth field");
Value stored to 'shown_fields' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

43 44 /* does nothing */ 45 e_contact_print (NULL, NULL, NULL, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG); 46 47 gtk_main (); 48 49 /* Not reached. */ 50 return 0; 51 }