]> granicus.if.org Git - imagemagick/commit
Fix compiler warning about unused function.
authorFlorian Margaine <ralt@users.noreply.github.com>
Sun, 19 Aug 2018 21:42:57 +0000 (23:42 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Tue, 28 Aug 2018 19:40:27 +0000 (21:40 +0200)
commita92c7a67cf3f688ca1ddba0f7eae1c9d821780ef
tree255d91b764f977cc4b791198a1386c206b95a2a3
parenta3e3d2d70d16e5f008920be051add6b9ffd3e110
Fix compiler warning about unused function.

When neither of those compiler macros are available, the compiler is going to spit a warning about the unused static function.

```
coders/miff.c:164:14: warning: 'AcquireCompressionMemory' defined but not used [-Wunused-function]
 static void *AcquireCompressionMemory(void *context,const size_t items,
```

Fix this by making sure the static function is only defined when it's going to be used.
coders/miff.c