Fix or ignore compiler warnings
Some fixes for compiler warnings taken out of the EDMWriter MR, to remove unrelated changes from that MR
- ignoring warnings about using strncpy in readData
- ignore warnings about use of register
- fix shadow variable warnings
- fix maybe-uninitialized warning