tests: no variables without a use, none read unset
This commit is contained in:
parent
77c70dc65a
commit
6e6bfd0a5e
3 changed files with 8 additions and 3 deletions
|
|
@ -689,7 +689,7 @@ void _run_offset_test(AtkObject * obj, char * type, gint offset,
|
|||
gchar output[MAX_LINE_SIZE];
|
||||
gchar default_val[5] = "NULL";
|
||||
gchar *text;
|
||||
gint startOffset, endOffset;
|
||||
gint startOffset = -1, endOffset = -1;
|
||||
|
||||
if (strcmp(type, "at") == 0)
|
||||
text = atk_text_get_text_at_offset (ATK_TEXT (obj),
|
||||
|
|
|
|||
|
|
@ -5497,7 +5497,7 @@ spin_button_hex_output_func (GtkSpinButton *spin_button)
|
|||
gint val;
|
||||
|
||||
val = (gint) spin_button->adjustment->value;
|
||||
if (fabs (val) < 1e-5)
|
||||
if (val == 0)
|
||||
sprintf (buf, "0x00");
|
||||
else
|
||||
sprintf (buf, "0x%.2X", val);
|
||||
|
|
@ -5850,8 +5850,10 @@ create_cursors (GtkWidget *widget)
|
|||
GtkWidget *label;
|
||||
GtkWidget *any;
|
||||
GtkAdjustment *adj;
|
||||
#ifdef GDK_WINDOWING_X11
|
||||
GtkWidget *entry;
|
||||
GtkWidget *size;
|
||||
#endif
|
||||
|
||||
if (!window)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -214,7 +214,10 @@ test_run (gchar *title,
|
|||
gint i, k, d, items;
|
||||
GTimer *timer;
|
||||
gdouble elapsed;
|
||||
int uordblks_before = 0, memused;
|
||||
#if defined(HAVE_MALLINFO2) || defined(HAVE_MALLINFO)
|
||||
int uordblks_before = 0;
|
||||
#endif
|
||||
int memused;
|
||||
|
||||
g_print ("%s (average over %d runs, time in milliseconds)\n"
|
||||
"items \ttime \ttime/item \tused memory\n", title, repeats);
|
||||
|
|
|
|||
Loading…
Reference in a new issue