Fix gdb.threads/tls-so_extern.exp with Clang
authorGary Benson <gbenson@redhat.com>
Thu, 12 Nov 2020 15:05:22 +0000 (15:05 +0000)
committerGary Benson <gbenson@redhat.com>
Thu, 12 Nov 2020 15:05:22 +0000 (15:05 +0000)
commit9e74f0aef6a73dba185161558cebace2ed9a54e5
tree54bb8f36f84efb0ee26d1ff90c9c4541ce4fda05
parenta3183ad61069e7d6edf46e783bb970d10df125c3
Fix gdb.threads/tls-so_extern.exp with Clang

Clang fails to compile gdb.threads/tls-so_extern_main.c, giving the
following error:

  /gdbtest/src/gdb/testsuite/gdb.threads/tls-so_extern_main.c:28:1:
    warning: non-void function does not return a value [-Wreturn-type]

This commit adds a return statement to the offending function.

gdb/testsuite/ChangeLog:

* gdb.threads/tls-so_extern_main.c (tls_ptr): Add missing return
statement.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/tls-so_extern_main.c