Removed warnings when compiling with -pedantic