Subversion Repositories DevTools

Rev

Rev 4995 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 dpurdie 1
#..
6177 dpurdie 2
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
227 dpurdie 3
#
4
# Module name   : warnings.mri
5
# Module type   : Makefile system
6
#
7
# Description:
8
#       This awk script is used to filter warnings from the output
9
#       when using the MRI (Microtec) toolset
10
#
11
# Version   Who      Date        Description
12
# 1.0       XXX      --/--/--    Created
13
#
14
#.........................................................................#
15
 
16
BEGIN {
17
    #
18
    #   Not all reported filenames are in the same case
19
    IGNORECASE = 1;
20
}
21
 
22
#
23
#   Blank lines
24
#
25
/^[ \t]*$/ {
26
    next;
27
}
28
 
29
#
30
#   Totally suppress messages about creating a command file
31
#
32
/D0028 command line for component/ {
33
    next;
34
}
35
 
36
#
37
#   Filter the following message from all files
38
#
39
/option -Md requires run-time initialization of pointers/{
40
        suppressed++;
41
        next;
42
}
43
 
44
/is local to the prototype; promoted/{
45
        suppressed++;
46
        next;
47
}
48
 
49
#
50
#   The compiler complains about alignment when processing many Dataman
51
#   Files because of the `packed' structure definitions it contains.
52
#
53
 
54
/devcd.h|solidbasetypes.h|sysbasetypes.h|sysbasetypes_mass.h/{
55
    if (index($0, "inefficient alignment")) {
56
        suppressed++;
57
    } else {
58
        print;
59
    }
60
    next;
61
}
62
 
63
/sp_params.c|maps.c|locationnames.c/{
64
    if (index($0, "potential run-time error: target has more \
65
                 stringent alignment requirements than source")){
66
        suppressed++;
67
    } else {
68
        print;
69
    }
70
    next;
71
}
72
 
73
/xdr.h/{
74
    if (index($0, "missing prototype for")){
75
        suppressed++;
76
    } else {
77
        print;
78
    }
79
    next;
80
}
81
 
82
#   What is not filtered is displayed
83
{
84
    print;
85
    next;
86
}
87
 
88
#.. Completion, display suppressed message count
89
#
90
END {
91
    if (suppressed) {
92
        printf(" %d Suppressed\n", suppressed);
93
    }
94
    printf("\n");
95
}
96