app, plug-ins: Comment unused stuff on macOS
This fixes Apple Clang warnings about: - idx - count_large - count_nan - n - iteration - original_id - real_pos
This commit is contained in:
parent
f4f1baf5ef
commit
af1dac3c51
6 changed files with 16 additions and 15 deletions
|
|
@ -1881,7 +1881,7 @@ swatchbooker_load_start_element (GMarkupParseContext *context,
|
|||
if (! strcmp (lower_att_name, "material"))
|
||||
{
|
||||
GList *cols;
|
||||
gint original_id = 0;
|
||||
/*gint original_id = 0;*/
|
||||
|
||||
for (cols = gimp_palette_get_colors (sbz_data->palette);
|
||||
cols;
|
||||
|
|
@ -1897,7 +1897,7 @@ swatchbooker_load_start_element (GMarkupParseContext *context,
|
|||
sbz_data->sorted_position++;
|
||||
break;
|
||||
}
|
||||
original_id++;
|
||||
/*original_id++;*/
|
||||
}
|
||||
|
||||
g_free (lower_att_name);
|
||||
|
|
|
|||
|
|
@ -593,7 +593,7 @@ gimp_menu_section_items_changed (GMenuModel *model,
|
|||
GtkWidget *separator;
|
||||
gboolean found = FALSE;
|
||||
gint count = position;
|
||||
gint real_pos = 0;
|
||||
/*gint real_pos = 0;*/
|
||||
|
||||
separator = g_hash_table_lookup (menu->priv->sections, model);
|
||||
g_return_if_fail (separator != NULL);
|
||||
|
|
@ -601,7 +601,7 @@ gimp_menu_section_items_changed (GMenuModel *model,
|
|||
children = gtk_container_get_children (GTK_CONTAINER (menu));
|
||||
for (iter = children; iter; iter = iter->next)
|
||||
{
|
||||
real_pos++;
|
||||
/*real_pos++;*/
|
||||
|
||||
if (! found)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2707,13 +2707,13 @@ rnd_remap (gint32 lum,
|
|||
t_samp_color_elem *col_ptr;
|
||||
gint rnd;
|
||||
gint ct;
|
||||
gint idx;
|
||||
/*gint idx;*/
|
||||
|
||||
if (g_lum_tab[lum].all_samples > 1)
|
||||
{
|
||||
rnd = g_random_int_range (0, g_lum_tab[lum].all_samples);
|
||||
ct = 0;
|
||||
idx = 0;
|
||||
/*idx = 0;*/
|
||||
|
||||
for (col_ptr = g_lum_tab[lum].col_ptr;
|
||||
col_ptr != NULL;
|
||||
|
|
@ -2729,7 +2729,7 @@ rnd_remap (gint32 lum,
|
|||
memcpy (mapped_color, &col_ptr->color[0], 3);
|
||||
return;
|
||||
}
|
||||
idx++;
|
||||
/*idx++;*/
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@ iterate (control_point *cp,
|
|||
int fuse,
|
||||
point *points)
|
||||
{
|
||||
int i, j, count_large = 0, count_nan = 0;
|
||||
/*int i, j, count_large = 0, count_nan = 0;*/
|
||||
int i, j;
|
||||
int xform_distrib[CHOOSE_XFORM_GRAIN];
|
||||
double p[3], t, r, dr;
|
||||
p[0] = points[0][0];
|
||||
|
|
@ -81,9 +82,9 @@ iterate (control_point *cp,
|
|||
|
||||
if (p[0] > 100.0 || p[0] < -100.0 ||
|
||||
p[1] > 100.0 || p[1] < -100.0)
|
||||
count_large++;
|
||||
/*count_large++;
|
||||
if (p[0] != p[0])
|
||||
count_nan++;
|
||||
count_nan++;*/
|
||||
|
||||
#define coef cp->xform[fn].c
|
||||
#define vari cp->xform[fn].var
|
||||
|
|
|
|||
|
|
@ -3133,10 +3133,10 @@ dlg_selector_setup_listbox (void)
|
|||
{
|
||||
GList *list;
|
||||
GFlare *gflare;
|
||||
gint n;
|
||||
/*gint n;*/
|
||||
|
||||
list = gflares_list;
|
||||
n = 0;
|
||||
/*n = 0;*/
|
||||
|
||||
while (list)
|
||||
{
|
||||
|
|
@ -3158,7 +3158,7 @@ dlg_selector_setup_listbox (void)
|
|||
&iter);
|
||||
|
||||
list = list->next;
|
||||
n++;
|
||||
/*n++;*/
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1085,7 +1085,7 @@ fit_with_least_squares (curve_type curve)
|
|||
spline_type spline, best_spline;
|
||||
spline_list_type *spline_list;
|
||||
unsigned worst_point;
|
||||
unsigned iteration = 0;
|
||||
/*unsigned iteration = 0;*/
|
||||
real previous_error = FLT_MAX;
|
||||
real improvement = FLT_MAX;
|
||||
|
||||
|
|
@ -1148,7 +1148,7 @@ fit_with_least_squares (curve_type curve)
|
|||
|| error > reparameterize_threshold)
|
||||
break;
|
||||
|
||||
iteration++;
|
||||
/*iteration++;*/
|
||||
/* LOG3 ("Reparameterization #%u (error was %.3f, a %u%% improvement):\n", */
|
||||
/* iteration, error, ((unsigned) (improvement * 100.0))); */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue