diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2021-02-03 14:09:02 +0000 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2021-02-10 15:26:57 +0000 |
commit | 758f590744b1cf8d1049fca3223d1817242cacb8 (patch) | |
tree | 3369d81a7aaf785458ee67b3263649db214c0a5a /libctf/ChangeLog | |
parent | cbd8f5bbcc81ffe6c84bd6439c9a22976867e4ad (diff) | |
download | gdb-758f590744b1cf8d1049fca3223d1817242cacb8.zip gdb-758f590744b1cf8d1049fca3223d1817242cacb8.tar.gz gdb-758f590744b1cf8d1049fca3223d1817242cacb8.tar.bz2 |
libctf: add missing header in BFD ELF check
Without this, GCC warns:
In file included from conftest.c:36:
../../libctf/../bfd/elf-bfd.h: In function 'bfd_section_is_ctf':
../../libctf/../bfd/elf-bfd.h:3089:10: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
3089 | return strncmp (name, ".ctf", 4) == 0 && (name[4] == 0 || name[4] == '.');
| ^~~~~~~
../../libctf/../bfd/elf-bfd.h:3089:33: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
3089 | return strncmp (name, ".ctf", 4) == 0 && (name[4] == 0 || name[4] == '.');
| ^
<built-in>: note: built-in 'strncmp' declared here
These warnings do not currently throw off the result of the configure
check, but it's better to squash them anyway.
libctf/ChangeLog
2021-02-03 Nick Alcock <nick.alcock@oracle.com>
* configure.ac (ac_cv_libctf_bfd_elf): Include string.h.
* configure: Regenerated.
Diffstat (limited to 'libctf/ChangeLog')
-rw-r--r-- | libctf/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog index 135add5..cf52903 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,5 +1,10 @@ 2021-02-03 Nick Alcock <nick.alcock@oracle.com> + * configure.ac (ac_cv_libctf_bfd_elf): Include string.h. + * configure: Regenerated. + +2021-02-03 Nick Alcock <nick.alcock@oracle.com> + * configure.ac (EXPECT): Check for, in order to define... (TCL_TRY): ... this, if Tcl supports try/catch. * Makefile.am (TCL_TRY): Run the testsuite only if set. |