diff options
author | Alan Modra <amodra@gmail.com> | 2016-03-22 14:20:18 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-03-22 14:24:30 +1030 |
commit | 6f4c0a426c653867c40936a9b8f503628adbd64b (patch) | |
tree | e1fc5e5c263ec410886375bf2ff25bda05b12a7a /bfd/plugin.c | |
parent | 859bde274ef9eb2c917000fb20ea6bbc2f6b5330 (diff) | |
download | gdb-6f4c0a426c653867c40936a9b8f503628adbd64b.zip gdb-6f4c0a426c653867c40936a9b8f503628adbd64b.tar.gz gdb-6f4c0a426c653867c40936a9b8f503628adbd64b.tar.bz2 |
Binutils fails to build with -O0
PR 19851
* plugin.c (try_load_plugin): Avoid -Wstack-usage warning.
Diffstat (limited to 'bfd/plugin.c')
-rw-r--r-- | bfd/plugin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/plugin.c b/bfd/plugin.c index 82a87d6..f57833c 100644 --- a/bfd/plugin.c +++ b/bfd/plugin.c @@ -206,8 +206,7 @@ static int try_load_plugin (const char *pname, bfd *abfd, int *has_plugin_p) { void *plugin_handle; - int tv_size = 4; - struct ld_plugin_tv tv[tv_size]; + struct ld_plugin_tv tv[4]; int i; ld_plugin_onload onload; enum ld_plugin_status status; |