From 6c79a9e08302571667a50a219d95354e687bd841 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 6 Oct 2012 15:03:55 +0200 Subject: [PATCH] Fix a warning. --- effect_chain.cpp | 2 +- effect_id.h | 26 -------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 effect_id.h diff --git a/effect_chain.cpp b/effect_chain.cpp index b1dea4b..31a7c8b 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -36,7 +36,7 @@ EffectChain::EffectChain(unsigned width, unsigned height) Input *EffectChain::add_input(const ImageFormat &format) { char eff_id[256]; - sprintf(eff_id, "src_image%d", inputs.size()); + sprintf(eff_id, "src_image%u", (unsigned)inputs.size()); Input *input = new Input(format, width, height); effects.push_back(input); diff --git a/effect_id.h b/effect_id.h deleted file mode 100644 index 227cf97..0000000 --- a/effect_id.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef _EFFECT_ID_H -#define _EFFECT_ID_H 1 - -enum EffectId { - // Mostly for internal use. - EFFECT_GAMMA_EXPANSION = 0, - EFFECT_GAMMA_COMPRESSION, - EFFECT_COLOR_SPACE_CONVERSION, - EFFECT_SANDBOX, - - // Color. - EFFECT_LIFT_GAMMA_GAIN, - EFFECT_SATURATION, - - // Spatial. - EFFECT_MIRROR, - EFFECT_VIGNETTE, - EFFECT_BLUR, - EFFECT_DIFFUSION, - EFFECT_GLOW, - - // Combining. - EFFECT_MIX, -}; - -#endif // !defined(_EFFECT_ID_H) -- 2.39.5