#.. # COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED. # # Module name : warnings.mri # Module type : Makefile system # # Description: # This awk script is used to filter warnings from the output # when using the MRI (Microtec) toolset # # Version Who Date Description # 1.0 XXX --/--/-- Created # #.........................................................................# BEGIN { # # Not all reported filenames are in the same case IGNORECASE = 1; } # # Blank lines # /^[ \t]*$/ { next; } # # Totally suppress messages about creating a command file # /D0028 command line for component/ { next; } # # Filter the following message from all files # /option -Md requires run-time initialization of pointers/{ suppressed++; next; } /is local to the prototype; promoted/{ suppressed++; next; } # # The compiler complains about alignment when processing many Dataman # Files because of the `packed' structure definitions it contains. # /devcd.h|solidbasetypes.h|sysbasetypes.h|sysbasetypes_mass.h/{ if (index($0, "inefficient alignment")) { suppressed++; } else { print; } next; } /sp_params.c|maps.c|locationnames.c/{ if (index($0, "potential run-time error: target has more \ stringent alignment requirements than source")){ suppressed++; } else { print; } next; } /xdr.h/{ if (index($0, "missing prototype for")){ suppressed++; } else { print; } next; } # What is not filtered is displayed { print; next; } #.. Completion, display suppressed message count # END { if (suppressed) { printf(" %d Suppressed\n", suppressed); } printf("\n"); }