From: Jonathan Wakely Date: Thu, 25 May 2017 13:24:46 +0000 (+0100) Subject: Fix bootstrap failure in Ada FE due to -Werror=ignored-qualifiers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb5faf73a81929d72283236fa5d78b2ade8f4d80;p=gcc.git Fix bootstrap failure in Ada FE due to -Werror=ignored-qualifiers * gcc-interface/utils2.c (compare_elmt_bitpos): Remove redundant const qualifiers that cause -Wignored-qualifiers warnings. From-SVN: r248458 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 702ac99cd87..4518f9519b4 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2017-05-25 Jonathan Wakely + + * gcc-interface/utils2.c (compare_elmt_bitpos): Remove redundant + const qualifiers that cause -Wignored-qualifiers warnings. + 2017-05-22 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity): Skip regular processing diff --git a/gcc/ada/gcc-interface/utils2.c b/gcc/ada/gcc-interface/utils2.c index fc6f1b86bdc..cd377913008 100644 --- a/gcc/ada/gcc-interface/utils2.c +++ b/gcc/ada/gcc-interface/utils2.c @@ -1934,8 +1934,8 @@ build_call_raise_range (int msg, Node_Id gnat_node, char kind, static int compare_elmt_bitpos (const PTR rt1, const PTR rt2) { - const constructor_elt * const elmt1 = (const constructor_elt * const) rt1; - const constructor_elt * const elmt2 = (const constructor_elt * const) rt2; + const constructor_elt * const elmt1 = (const constructor_elt *) rt1; + const constructor_elt * const elmt2 = (const constructor_elt *) rt2; const_tree const field1 = elmt1->index; const_tree const field2 = elmt2->index; const int ret