Removing pointless compiler warnings