A nested aggregate with a single "others => <>" clause is equivalent to a box
itself. Code cleanup; semantics is unaffected.
gcc/ada/ChangeLog:
* errid.ads (Diagnostic_Entries): Remove nested aggregate.
* errsw.adb (Switches): Likewise.
-- TODO: the mandatory fields for the documentation file could be changed
Diagnostic_Entries : Diagnostics_Registry_Type :=
- (No_Diagnostic_Id => (others => <>),
+ (No_Diagnostic_Id => <>,
GNAT0001 =>
(Status => Active,
Human_Id => new String'("Default_Iterator_Not_Primitive_Error"),
Switches : constant array (Switch_Id)
of Switch_Type :=
(No_Switch_Id =>
- (others => <>),
+ <>,
gnatwb =>
(Human_Id => new String'("Warn_On_Bad_Fixed_Value"),
Status => Active,