diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2013-10-29 18:43:57 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2013-10-29 18:43:57 +0000 |
| commit | 1a0617e6f45f13a5ee2d81cd03182f82361bcf36 (patch) | |
| tree | 1bd361fa16f05c844085c7e1d29af80d011a312d | |
| parent | fix crash (diff) | |
| download | inkscape-1a0617e6f45f13a5ee2d81cd03182f82361bcf36.tar.gz inkscape-1a0617e6f45f13a5ee2d81cd03182f82361bcf36.zip | |
supress some compiler warnings
(bzr r12743)
| -rw-r--r-- | src/display/nr-filter-gaussian.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/display/nr-filter-gaussian.cpp b/src/display/nr-filter-gaussian.cpp index 9d7c32585..b96e24cbc 100644 --- a/src/display/nr-filter-gaussian.cpp +++ b/src/display/nr-filter-gaussian.cpp @@ -304,10 +304,9 @@ filter2D_IIR(PT *const dest, int const dstr1, int const dstr2, #define PREMUL_ALPHA_LOOP for(unsigned int c=1; c<PC; ++c) #endif +INK_UNUSED(num_threads); // to suppress unused argument compiler warning #if HAVE_OPENMP #pragma omp parallel for num_threads(num_threads) -#else - INK_UNUSED(num_threads); #endif // HAVE_OPENMP for ( int c2 = 0 ; c2 < n2 ; c2++ ) { #if HAVE_OPENMP @@ -375,10 +374,9 @@ filter2D_FIR(PT *const dst, int const dstr1, int const dstr2, // Past pixels seen (to enable in-place operation) PT history[scr_len+1][PC]; +INK_UNUSED(num_threads); // suppresses unused argument compiler warning #if HAVE_OPENMP #pragma omp parallel for num_threads(num_threads) private(history) -#else - INK_UNUSED(num_threads); #endif // HAVE_OPENMP for ( int c2 = 0 ; c2 < n2 ; c2++ ) { |
