From 52d0a7acadc642b26e833dfcaffc22e4d59fb75f Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Wed, 25 May 2011 13:59:49 +0200 Subject: [PATCH] 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 --- gcc/ada/ChangeLog | 5 +++++ gcc/ada/adaint.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.30.2