Most fixes are to suppress "warning: dereferencing type-punned pointer will break strict-aliasing rules", which is not always easy to do in an elegant way.
One big change (in term of diff) is for frmts/aigrid/aigccitt.c where 3 arrays of structure elements missed a lot of braces.
Apart from cosmetic and boring changes, I think that I've catched a bug in the process.
See :
Index: frmts/fit/fitdataset.cpp
===================================================================
--- frmts/fit/fitdataset.cpp (révision 11867)
+++ frmts/fit/fitdataset.cpp (copie de travail)
@@ -941,7 +941,7 @@
CPLDebug("FIT", "Loading file with header version 01");
// map old style header into new header structure
- FIThead01* head01 = (FIThead01*)&head;
+ FIThead01* head01 = (FIThead01*)head;
gst_swapb(head->dataOffset);
info->dataOffset = head01->dataOffset;