From: joncruz Date: Sun, 2 Mar 2008 05:45:09 +0000 (+0000) Subject: warning cleanup X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0594f8d59be8c8069081b9aea1ce4c196fee0854;p=inkscape.git warning cleanup --- diff --git a/src/extension/execution-env.cpp b/src/extension/execution-env.cpp index fae764a9d..aa8c82171 100644 --- a/src/extension/execution-env.cpp +++ b/src/extension/execution-env.cpp @@ -70,7 +70,7 @@ ExecutionEnv::ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Imp } /** \brief Destroy an execution environment - + Destroys the dialog if created and the document cache. */ ExecutionEnv::~ExecutionEnv (void) { @@ -138,7 +138,7 @@ ExecutionEnv::createWorkingDialog (void) { } void -ExecutionEnv::workingCanceled( const int resp) { +ExecutionEnv::workingCanceled( const int /*resp*/) { cancel(); undo(); return; diff --git a/src/trace/potrace/inkscape-potrace.cpp b/src/trace/potrace/inkscape-potrace.cpp index 3f4cbc36c..bad4278e2 100644 --- a/src/trace/potrace/inkscape-potrace.cpp +++ b/src/trace/potrace/inkscape-potrace.cpp @@ -43,7 +43,7 @@ static void updateGui() } -static void potraceStatusCallback(double progress, void *userData) /* callback fn */ +static void potraceStatusCallback(double /*progress*/, void *userData) /* callback fn */ { updateGui(); @@ -284,14 +284,14 @@ filterIndexed(PotraceTracingEngine &engine, GdkPixbuf * pixbuf) RgbMap *gm = gdkPixbufToRgbMap(pixbuf); if (engine.getMultiScanSmooth()) { - RgbMap *gaussMap = rgbMapGaussian(gm); - newGm = rgbMapQuantize(gaussMap, engine.getMultiScanNrColors()); - gaussMap->destroy(gaussMap); - } + RgbMap *gaussMap = rgbMapGaussian(gm); + newGm = rgbMapQuantize(gaussMap, engine.getMultiScanNrColors()); + gaussMap->destroy(gaussMap); + } else { - newGm = rgbMapQuantize(gm, engine.getMultiScanNrColors()); - } + newGm = rgbMapQuantize(gm, engine.getMultiScanNrColors()); + } gm->destroy(gm); if (engine.getTraceType() == TRACE_QUANT_MONO) @@ -379,7 +379,7 @@ PotraceTracingEngine::grayMapToPath(GrayMap *grayMap, long *nodeCount) /* trace a bitmap*/ potrace_state_t *potraceState = potrace_trace(potraceParams, - potraceBitmap); + potraceBitmap); //## Free the Potrace bitmap bm_free(potraceBitmap);