-
Notifications
You must be signed in to change notification settings - Fork 5
/
gprbuild_wr.gpr
78 lines (72 loc) · 4.22 KB
/
gprbuild_wr.gpr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
-------------------------------------------------------------------------------
-- SweetAda GPRbuild project file
-------------------------------------------------------------------------------
with "configure";
abstract project Gprbuild_Wr is
ADAC_Switches_Warning := (
-- "-gnatwa", -- Activate most optional warnings.
"-gnatw.a", -- Activate warnings on failing assertions.
"-gnatwb", -- Activate warnings on bad fixed values.
"-gnatw.b", -- Activate warnings on biased representation.
"-gnatwC", -- Activate warnings on conditionals.
-- "-gnatw.c", -- Activate warnings on missing component clauses.
"-gnatwd", -- Activate warnings on implicit dereferencing.
"-gnatw.d", -- Activate tagging of warning and info messages.
-- "-gnatwe", -- Treat warnings and style checks as errors.
-- "-gnatwf", -- Activate warnings on unreferenced formals.
"-gnatwg", -- Activate warnings on unrecognized pragmas.
"-gnatwh", -- Activate warnings on hiding.
-- "-gnatw.h", -- Activate warnings on holes/gaps in records.
"-gnatwI", -- Activate warnings on implementation units.
-- "-gnatwi", -- Activate warnings on implementation units.
"-gnatw.i", -- Activate warnings on overlapping actuals.
"-gnatwj", -- Activate warnings on obsolescent features (Annex J).
"-gnatwk", -- Activate warnings on variables that could be constants.
"-gnatw.k", -- Activate warnings on redefinition of names in standard.
"-gnatwl", -- Activate warnings for elaboration pragmas.
"-gnatw.l", -- List inherited aspects.
"-gnatwm", -- Activate warnings on modified but unreferenced variables.
"-gnatw.m", -- Activate warnings on suspicious modulus values.
-- "-gnatw.n", -- Activate warnings on atomic synchronization.
"-gnatwo", -- Activate warnings on address clause overlays.
"-gnatw.o", -- Activate warnings on modified but unreferenced out parameters.
"-gnatwp", -- Activate warnings on ineffective pragma Inlines.
"-gnatw.p", -- Activate warnings on parameter ordering.
"-gnatwq", -- Activate warnings on questionable missing parentheses.
"-gnatw.q", -- Activate warnings on questionable layout of record types.
"-gnatwr", -- Activate warnings on redundant constructs.
"-gnatw.r", -- Activate warnings for object renaming function.
-- "-gnatw_r", -- Activate warnings for out-of-order record representation clauses.
"-gnatw.s", -- Activate warnings on overridden size clauses.
-- "-gnatwt", -- Activate warnings for tracking of deleted conditional code.
"-gnatw.t", -- Activate warnings on suspicious contracts.
"-gnatw.u", -- Activate warnings on unordered enumeration types.
"-gnatwv", -- Activate warnings on unassigned variables.
-- "-gnatw.v", -- Activate info messages for non-default bit order.
"-gnatw.V", -- Suppress info messages for non-default bit order.
"-gnatww", -- Activate warnings on wrong low bound assumption.
-- "-gnatw.w", -- Activate warnings on Warnings Off pragmas.
"-gnatwx", -- Activate warnings on Export/Import pragmas.
"-gnatw.X", -- Disable warnings for No_Exception_Propagation mode.
-- "-gnatw.y", -- Activate information messages for why package spec needs body.
"-gnatwz", -- Activate warnings on unchecked conversions.
"-gnatw.z", -- Activate warnings for size not a multiple of alignment.
"-Wstack-usage=" & Configure.Stack_Limit,
"-Wunused",
"-Wuninitialized"
-- "-gnatwu" -- Activate warnings on unused entities.
);
CC_Switches_Warning := (
"-Wall", "-pedantic",
"-Wbad-function-cast",
"-Wcast-align",
"-Winline",
"-Wpointer-arith",
"-Wredundant-decls",
"-Wshadow",
"-Wsign-compare",
"-Wstrict-prototypes",
"-Wundef",
"-Wwrite-strings"
);
end Gprbuild_Wr;