]> git.tuebingen.mpg.de Git - paraslash.git/commit
wma: Fix sparse error.
authorAndre Noll <maan@systemlinux.org>
Sat, 4 May 2013 18:39:54 +0000 (20:39 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 4 May 2013 18:39:54 +0000 (20:39 +0200)
commit77ba62319ecf0e544a87662ea05c3c0e0344a070
tree0013e514ce08e70a07833cad7c9a701760fc9c07
parent72109189a67d9fe19fb88dc744a999e2d21ff591
wma: Fix sparse error.

wma_common.c defines wma_log2() with __attribute__ ((const)), but the
declaration in wma.h lacks this attribute. Sparse does not like that
and fails with

wma_common.c:147:15: error: symbol 'wma_log2' redeclared with different type (originally declared at wma.h:28) - different modifiers

Add the const attribute also to wma.h.
wma.h