Apply Canna-3.6-fix-warnings.patch from fedora project.
http://pkgs.fedoraproject.org/cgit/Canna.git/tree/Canna-3.6-fix-warnings.patch