Fix compiler warnings for a discarded const pointer
Merge pull request #1 from Cobinja/fix-const-pointer-warning

Fix compiler warnings for a discarded const pointer