From: Kai Tietz Date: Wed, 25 May 2011 11:59:49 +0000 (+0200) Subject: adaint.c (__gnat_to_canonical_file_list_next): Use array initialization instead of... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52d0a7acadc642b26e833dfcaffc22e4d59fb75f;p=gcc.git adaint.c (__gnat_to_canonical_file_list_next): Use array initialization instead of const/none-const pointer assignment. 2011-05-25 Kai Tietz * adaint.c (__gnat_to_canonical_file_list_next): Use array initialization instead of const/none-const pointer assignment. From-SVN: r174185 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 2836e2619fd..b69987f8bc6 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2011-05-25 Kai Tietz + + * adaint.c (__gnat_to_canonical_file_list_next): Use array + initialization instead of const/none-const pointer assignment. + 2011-05-24 Joseph Myers * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 855ce34895a..bea33f60f2c 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -3367,7 +3367,7 @@ __gnat_to_canonical_file_list_init char * __gnat_to_canonical_file_list_next (void) { - static char *empty = ""; + static char empty[] = ""; return empty; }