Increased reliability by fixing -Wall errors