fix compilation of plugin
Merge pull request #523 from Incubaid/fix_warn_error

fix compilation of plugin