diff options
author | Kai Tietz <ktietz@redhat.com> | 2011-05-25 13:59:49 +0200 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2011-05-25 13:59:49 +0200 |
commit | 52d0a7acadc642b26e833dfcaffc22e4d59fb75f (patch) | |
tree | 3a2ed2f19f9df41a4781bac836869e51ff7fd10a /gcc | |
parent | a11e0df4da7c987c9627724748fe727183e9379f (diff) | |
download | gcc-52d0a7acadc642b26e833dfcaffc22e4d59fb75f.zip gcc-52d0a7acadc642b26e833dfcaffc22e4d59fb75f.tar.gz gcc-52d0a7acadc642b26e833dfcaffc22e4d59fb75f.tar.bz2 |
adaint.c (__gnat_to_canonical_file_list_next): Use array initialization instead of const/none-const pointer assignment.
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.
From-SVN: r174185
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/adaint.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 2836e26..b69987f 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -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 diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 855ce34..bea33f6 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; } |