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

(cherry picked from commit 4fc345183b)
This commit is contained in:
Ell
2019-09-12 19:51:04 +03:00
parent f8432a6dc9
commit d3e1f50b13
4 changed files with 5 additions and 6 deletions

View File

@ -227,7 +227,7 @@ gimp_parallel_run_async_independent_full (gint priority,
#elif defined (HAVE_UNISTD_H) && defined (__gnu_linux__) #elif defined (HAVE_UNISTD_H) && defined (__gnu_linux__)
if (task->priority) if (task->priority)
{ {
nice (task->priority) != -1; (nice (task->priority) != -1);
/* ^-- avoid "unused result" warning */ /* ^-- avoid "unused result" warning */
} }
#endif #endif

View File

@ -1005,7 +1005,6 @@ find_contiguous_region (GeglBuffer *src_buffer,
const Babl *mask_format = babl_format ("Y float"); const Babl *mask_format = babl_format ("Y float");
GeglSampler *src_sampler; GeglSampler *src_sampler;
const GeglRectangle *src_extent; const GeglRectangle *src_extent;
gint x1, x2;
gint old_y; gint old_y;
gint start, end; gint start, end;
gint new_start, new_end; gint new_start, new_end;

View File

@ -628,8 +628,10 @@ gimp_gegl_smudge_with_paint (GeglBuffer *accum_buffer,
GeglAccessMode paint_buffer_access_mode = (brush_color ? GeglAccessMode paint_buffer_access_mode = (brush_color ?
GEGL_ACCESS_WRITE : GEGL_ACCESS_WRITE :
GEGL_ACCESS_READWRITE); GEGL_ACCESS_READWRITE);
#if COMPILE_SSE2_INTRINISICS
gboolean sse2 = (gimp_cpu_accel_get_support () & gboolean sse2 = (gimp_cpu_accel_get_support () &
GIMP_CPU_ACCEL_X86_SSE2); GIMP_CPU_ACCEL_X86_SSE2);
#endif
if (! accum_rect) if (! accum_rect)
accum_rect = gegl_buffer_get_extent (accum_buffer); accum_rect = gegl_buffer_get_extent (accum_buffer);

View File

@ -435,7 +435,7 @@ public:
{ {
gint i; 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)); map[i] = pressure (T (i));
} }
@ -485,7 +485,6 @@ gimp_brush_core_pressurize_mask (GimpBrushCore *core,
{ {
const GimpTempBuf *subsample_mask; const GimpTempBuf *subsample_mask;
const Babl *subsample_mask_format; const Babl *subsample_mask_format;
gint i;
/* Get the raw subsampled mask */ /* Get the raw subsampled mask */
subsample_mask = gimp_brush_core_subsample_mask (core, 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_width = gimp_temp_buf_get_width (mask);
gint mask_height = gimp_temp_buf_get_height (mask); gint mask_height = gimp_temp_buf_get_height (mask);
gint dest_width = gimp_temp_buf_get_width (dest); gint dest_width = gimp_temp_buf_get_width (dest);
gint dest_height = gimp_temp_buf_get_height (dest);
gegl_parallel_distribute_area ( gegl_parallel_distribute_area (
GEGL_RECTANGLE (0, 0, mask_width, mask_height), GEGL_RECTANGLE (0, 0, mask_width, mask_height),