Commit 4fc34518 authored by Ell's avatar Ell

app, meson.build: fix a bunch of warnings in C++ files

parent 077e596d
Pipeline #114409 passed with stages
in 11 minutes and 36 seconds
......@@ -227,8 +227,8 @@ gimp_parallel_run_async_independent_full (gint priority,
#elif defined (HAVE_UNISTD_H) && defined (__gnu_linux__)
if (task->priority)
{
nice (task->priority) != -1;
/* ^-- avoid "unused result" warning */
(nice (task->priority) != -1);
/* ^-- avoid "unused result" warning */
}
#endif
......
......@@ -1006,7 +1006,6 @@ find_contiguous_region (GeglBuffer *src_buffer,
const Babl *mask_format = babl_format ("Y float");
GeglSampler *src_sampler;
const GeglRectangle *src_extent;
gint x1, x2;
gint old_y;
gint start, end;
gint new_start, new_end;
......
......@@ -632,8 +632,10 @@ gimp_gegl_smudge_with_paint (GeglBuffer *accum_buffer,
GeglAccessMode paint_buffer_access_mode = (brush_color ?
GEGL_ACCESS_WRITE :
GEGL_ACCESS_READWRITE);
#if COMPILE_SSE2_INTRINISICS
gboolean sse2 = (gimp_cpu_accel_get_support () &
GIMP_CPU_ACCEL_X86_SSE2);
#endif
if (! accum_rect)
accum_rect = gegl_buffer_get_extent (accum_buffer);
......
......@@ -435,7 +435,7 @@ public:
{
gint i;
for (i = 0; i < G_N_ELEMENTS (map); i++)
for (i = 0; i < (gint) G_N_ELEMENTS (map); i++)
map[i] = pressure (T (i));
}
......@@ -485,7 +485,6 @@ gimp_brush_core_pressurize_mask (GimpBrushCore *core,
{
const GimpTempBuf *subsample_mask;
const Babl *subsample_mask_format;
gint i;
/* Get the raw subsampled mask */
subsample_mask = gimp_brush_core_subsample_mask (core,
......@@ -542,7 +541,6 @@ gimp_brush_core_solidify_mask_impl (const GimpTempBuf *mask,
gint mask_width = gimp_temp_buf_get_width (mask);
gint mask_height = gimp_temp_buf_get_height (mask);
gint dest_width = gimp_temp_buf_get_width (dest);
gint dest_height = gimp_temp_buf_get_height (dest);
gegl_parallel_distribute_area (
GEGL_RECTANGLE (0, 0, mask_width, mask_height),
......
......@@ -237,13 +237,13 @@ warning_cflags_common = [
# You can uncomment this to debug with less warning outputs
'-Wno-deprecated-declarations',
'-Werror=implicit-function-declaration',
]
warning_cflags_c = [
'-Wdeclaration-after-statement',
'-Wold-style-definition',
'-Wno-strict-prototypes',
'-Werror=implicit-function-declaration',
]
warning_cflags_cpp = [
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment