mirror of https://github.com/GNOME/gimp.git
Get rid of artificial compiler warnings
Get rid of artificial compiler warnings generated with the #warning directive. They pollute the build output and don't work as incentives for fixing stuff.
This commit is contained in:
parent
e564cc2e4e
commit
b2b2b41e62
|
@ -90,9 +90,7 @@ palettes_merge_callback (GtkWidget *widget,
|
|||
const gchar *palette_name,
|
||||
gpointer data)
|
||||
{
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: reimplement palettes_merge_callback()
|
||||
#endif
|
||||
/* FIXME: reimplement palettes_merge_callback() */
|
||||
#if 0
|
||||
GimpContainerEditor *editor;
|
||||
GimpPalette *palette;
|
||||
|
|
|
@ -868,9 +868,7 @@ gimp_curve_get_uchar (GimpCurve *curve,
|
|||
gint i;
|
||||
|
||||
g_return_if_fail (GIMP_IS_CURVE (curve));
|
||||
#ifdef __GNUC__
|
||||
#warning: FIXME: support n_samples != curve->n_samples
|
||||
#endif
|
||||
/* FIXME: support n_samples != curve->n_samples */
|
||||
g_return_if_fail (n_samples == curve->n_samples);
|
||||
g_return_if_fail (samples != NULL);
|
||||
|
||||
|
|
|
@ -78,9 +78,7 @@ gimp_drawable_curves_spline (GimpDrawable *drawable,
|
|||
|
||||
gimp_data_freeze (GIMP_DATA (curve));
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: create a curves object with the right number of points
|
||||
#endif
|
||||
/* FIXME: create a curves object with the right number of points */
|
||||
/* unset the last point */
|
||||
gimp_curve_set_point (curve, curve->n_points - 1, -1, -1);
|
||||
|
||||
|
|
|
@ -370,9 +370,7 @@ gimp_drawable_visibility_changed (GimpItem *item)
|
|||
output, "input");
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: chain up again when above floating sel special case is gone
|
||||
#endif
|
||||
/* FIXME: chain up again when above floating sel special case is gone */
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1859,9 +1857,7 @@ gimp_drawable_attach_floating_sel (GimpDrawable *drawable,
|
|||
|
||||
gimp_drawable_sync_source_node (drawable, FALSE);
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: remove this hack when the floating sel is no layer any longer
|
||||
#endif
|
||||
/* FIXME: remove this hack when the floating sel is no layer any longer */
|
||||
g_signal_emit_by_name (floating_sel, "visibility-changed");
|
||||
}
|
||||
|
||||
|
@ -1880,9 +1876,7 @@ gimp_drawable_detach_floating_sel (GimpDrawable *drawable,
|
|||
|
||||
gimp_drawable_sync_source_node (drawable, TRUE);
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: remove this hack when the floating sel is no layer any longer
|
||||
#endif
|
||||
/* FIXME: remove this hack when the floating sel is no layer any longer */
|
||||
g_signal_emit_by_name (floating_sel, "visibility-changed");
|
||||
|
||||
/* Invalidate the preview of the obscured drawable. We do this here
|
||||
|
|
|
@ -37,12 +37,6 @@
|
|||
#include "gimpviewable.h"
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: gegl_node_get_pad() or something similar needs to be public
|
||||
#endif
|
||||
gpointer gegl_node_get_pad (GeglNode *self,
|
||||
const gchar *pad_name);
|
||||
|
||||
enum
|
||||
{
|
||||
FLUSH,
|
||||
|
|
|
@ -823,9 +823,7 @@ gimp_layer_transform (GimpItem *item,
|
|||
{
|
||||
GimpLayer *layer = GIMP_LAYER (item);
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: make interpolated transformations work on layers without alpha
|
||||
#endif
|
||||
/* FIXME: make interpolated transformations work on layers without alpha */
|
||||
if (interpolation_type != GIMP_INTERPOLATION_NONE &&
|
||||
! gimp_drawable_has_alpha (GIMP_DRAWABLE (item)))
|
||||
gimp_layer_add_alpha (layer);
|
||||
|
|
|
@ -32,9 +32,7 @@
|
|||
#include "gimpparamspecs-duplicate.h"
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: this code is not yet general as it should be (gegl tool only atm)
|
||||
#endif
|
||||
/* FIXME: this code is not yet general as it should be (gegl tool only atm) */
|
||||
|
||||
GParamSpec *
|
||||
gimp_param_spec_duplicate (GParamSpec *pspec)
|
||||
|
|
|
@ -917,9 +917,7 @@ gimp_value_set_item (GValue *value,
|
|||
{
|
||||
g_return_if_fail (item == NULL || GIMP_IS_ITEM (item));
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME remove hack as soon as bug #375864 is fixed
|
||||
#endif
|
||||
/* FIXME remove hack as soon as bug #375864 is fixed */
|
||||
|
||||
if (GIMP_VALUE_HOLDS_ITEM_ID (value))
|
||||
{
|
||||
|
|
|
@ -91,9 +91,7 @@ quit_close_all_dialog_new (Gimp *gimp,
|
|||
|
||||
g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: need container of dirty images
|
||||
#endif
|
||||
/* FIXME: need container of dirty images */
|
||||
|
||||
images = gimp_displays_get_dirty_images (gimp);
|
||||
context = gimp_context_new (gimp, "close-all-dialog",
|
||||
|
|
|
@ -62,9 +62,7 @@ gimp_desaturate_config_class_init (GimpDesaturateConfigClass *klass)
|
|||
object_class->set_property = gimp_desaturate_config_set_property;
|
||||
object_class->get_property = gimp_desaturate_config_get_property;
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: change string when a desaturate icon gets added
|
||||
#endif
|
||||
/*FIXME: change string when a desaturate icon gets added */
|
||||
viewable_class->default_stock_id = "gimp-convert-grayscale";
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MODE,
|
||||
|
|
|
@ -19,9 +19,7 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: #undef GTK_DISABLE_DEPRECATED
|
||||
#endif
|
||||
/* FIXME: #undef GTK_DISABLE_DEPRECATED */
|
||||
#undef GTK_DISABLE_DEPRECATED
|
||||
|
||||
#include <gegl.h>
|
||||
|
|
|
@ -1461,9 +1461,7 @@ gimp_dialog_factories_clear_foreach (gconstpointer key,
|
|||
if (info->widget)
|
||||
continue;
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: implement session info deletion
|
||||
#endif
|
||||
/* FIXME: implement session info deletion */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -36,9 +36,7 @@
|
|||
#include "core/gimpselection.h"
|
||||
#include "core/gimptoolinfo.h"
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: #include "tools/tools-types.h"
|
||||
#endif
|
||||
/* FIXME: #include "tools/tools-types.h" */
|
||||
#include "tools/tools-types.h"
|
||||
#include "tools/gimpregionselectoptions.h"
|
||||
|
||||
|
|
|
@ -827,9 +827,7 @@ toolbox_area_notify (GimpGuiConfig *config,
|
|||
|
||||
gtk_widget_show (parent);
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: fix GtkWrapBox child requisition/allocation instead of hacking badly (bug #162500).
|
||||
#endif
|
||||
/* FIXME: fix GtkWrapBox child requisition/allocation instead of hacking badly (bug #162500). */
|
||||
gtk_widget_size_request (area, &req);
|
||||
gtk_widget_set_size_request (parent, req.width, req.height);
|
||||
}
|
||||
|
|
|
@ -1053,9 +1053,7 @@ gimp_ui_manager_item_key_press (GtkWidget *widget,
|
|||
/* Stuff below taken from gtktooltip.c
|
||||
*/
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: remove this crack as soon as a GTK+ widget_under_pointer() is available
|
||||
#endif
|
||||
/* FIXME: remove this crack as soon as a GTK+ widget_under_pointer() is available */
|
||||
|
||||
struct ChildLocation
|
||||
{
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
/* FIXME: #undef GTK_DISABLE_DEPRECATED */
|
||||
#undef GTK_DISABLE_DEPRECATED
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
|
|
@ -264,9 +264,7 @@ get_samples_gradient (GimpDrawable *drawable)
|
|||
|
||||
gradient_name = gimp_context_get_gradient ();
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: "reverse" hardcoded to FALSE.
|
||||
#endif
|
||||
/* FIXME: "reverse" hardcoded to FALSE. */
|
||||
gimp_gradient_get_uniform_samples (gradient_name, NSAMPLES, FALSE,
|
||||
&n_f_samples, &f_samples);
|
||||
|
||||
|
|
|
@ -66,9 +66,7 @@
|
|||
|
||||
#include <glib/gstdio.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning GIMP_DISABLE_DEPRECATED
|
||||
#endif
|
||||
/* FIXME: #undef GTK_DISABLE_DEPRECATED */
|
||||
#undef GIMP_DISABLE_DEPRECATED
|
||||
|
||||
#include <libgimp/gimp.h>
|
||||
|
|
|
@ -271,9 +271,7 @@ drawable_to_cmap (control_point *cp)
|
|||
gint num;
|
||||
gdouble *g;
|
||||
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: "reverse" hardcoded to FALSE.
|
||||
#endif
|
||||
/* FIXME: "reverse" hardcoded to FALSE. */
|
||||
gimp_gradient_get_uniform_samples (name, 256, FALSE,
|
||||
&num, &g);
|
||||
|
||||
|
|
|
@ -4878,9 +4878,7 @@ gradient_get_values_external (const gchar *gradient_name,
|
|||
ci = gradient_cache_lookup (gradient_name, &found);
|
||||
if (!found)
|
||||
{
|
||||
#ifdef __GNUC__
|
||||
#warning FIXME: "reverse" hardcoded to FALSE.
|
||||
#endif
|
||||
/* FIXME: "reverse" hardcoded to FALSE. */
|
||||
gradient_get_values_real_external (gradient_name, ci->values,
|
||||
GRADIENT_RESOLUTION, FALSE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue