Fix compiler warnings triggering error