Skip to content

Commit

Permalink
Remove -gnatwJ flag from compilation
Browse files Browse the repository at this point in the history
Removing this flag will cause many warnings to appear that look like:

warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]

This commit removes the flag and fixes any updates all uses of the
obselescent syntax within Adamant.
  • Loading branch information
dinkelk committed Jul 3, 2024
1 parent 4039eeb commit c214129
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions redo/targets/gpr/a_adamant.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ abstract project a_adamant is
-- -gnatwt - deleted conditional code
-- -gnatw.X - disable warnings for No_Exception_Propagation mode, since this is usable in Linux
-- -gnat2022- add support for gnat2022 features
-- -gnatwJ ignore warnings (for now) like:
-- warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
--
-- Note: I did not turn on gnatwd, because writing "all" all the time makes things
-- less readable.
--
ADA_FLAGS := ("-gnatf", "-gnatwa", "-gnatwl", "-gnatw.o", "-gnatwt", "-gnatw.X", "-gnat2022", "-gnatwJ");
ADA_FLAGS := ("-gnatf", "-gnatwa", "-gnatwl", "-gnatw.o", "-gnatwt", "-gnatw.X", "-gnat2022");
COMMON_C_FLAGS := ("-Wall", "-Wextra", "-pedantic");
C_FLAGS := COMMON_C_FLAGS & ("-std=gnu99");
CPP_FLAGS := COMMON_C_FLAGS & ("-std=c++0x");
Expand Down

0 comments on commit c214129

Please sign in to comment.