In stead of using void cast, move declaration into ifdef block
Merge pull request #114 from flikka/werror

In stead of using void cast, move declaration into ifdef block