Fix compiler warnings for a discarded const pointer

No more text needed