diff options
author | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2020-04-17 13:49:28 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-04-24 17:44:13 +0100 |
commit | c60252ac2b636c4d99b766a574b9df0966151696 (patch) | |
tree | d245d2c433912779982b9aff812f00abb3551c1a /src/jtag | |
parent | bed0215573269cd9f85d23eaa15a27ce13a53e87 (diff) | |
download | riscv-openocd-c60252ac2b636c4d99b766a574b9df0966151696.zip riscv-openocd-c60252ac2b636c4d99b766a574b9df0966151696.tar.gz riscv-openocd-c60252ac2b636c4d99b766a574b9df0966151696.tar.bz2 |
bitbang: Fix FTBFS with GCC 10
GCC 10 defaults to -fno-common which breaks the sharing of bitbang_swd
struct between bitbang drivers due to a missing extern.
Change-Id: I2b4122f7939cec91a72284006748f99a23548324
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/5592
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Jonathan McDowell <noodles-openocd@earth.li>
Diffstat (limited to 'src/jtag')
-rw-r--r-- | src/jtag/drivers/bitbang.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/drivers/bitbang.h b/src/jtag/drivers/bitbang.h index edb779c..bbbc693 100644 --- a/src/jtag/drivers/bitbang.h +++ b/src/jtag/drivers/bitbang.h @@ -56,7 +56,7 @@ struct bitbang_interface { void (*swdio_drive)(bool on); }; -const struct swd_driver bitbang_swd; +extern const struct swd_driver bitbang_swd; extern bool swd_mode; |