OSDN Git Service

2011-05-25 Kai Tietz <ktietz@redhat.com>
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 May 2011 11:59:49 +0000 (11:59 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 May 2011 11:59:49 +0000 (11:59 +0000)
        * adaint.c (__gnat_to_canonical_file_list_next): Use array
        initialization instead of const/none-const pointer assignment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174185 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/adaint.c

index 2836e26..b69987f 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-25  Kai Tietz  <ktietz@redhat.com>
+
+       * adaint.c (__gnat_to_canonical_file_list_next): Use array
+       initialization instead of const/none-const pointer assignment.
+
 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
 
        * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
index 855ce34..bea33f6 100644 (file)
@@ -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;
 }