added extra gcc specifc pragmas to disable warning on printf that takes string var as format string.