![]() Gnulib generates a warning if the system version of certain functions are used (to redirect the developer to use Gnulib version). It caused a compiler error when... - Compiled with Clang - -Werror is specified (by default) - C++ standard used by Clang is before C++17 (by default as of 15.0.0) when this unit test is activated. This issue is raised as PR28413. However, previous proposal to fix this issue (a "fix" to Gnulib): <https://lists.gnu.org/archive/html/bug-gnulib/2021-10/msg00003.html> was rejected because it ruins the intent of Gnulib warnings. So, we need a Binutils/GDB-side solution. This commit tries to address this issue on the GDB side. We have "include/diagnostics.h" to disable certain warnings only when necessary. This commit suppresses the Gnulib warnings by surrounding entire #include block with DIAGNOSTIC_IGNORE_USER_DEFINED_WARNINGS to disable Gnulib- generated warnings on all standard C++ header files. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28413 Approved-By: Simon Marchi <simon.marchi@efficios.com> Change-Id: Ieeb5a31a6902808d4c7263a2868ae19a35e0ccaa |
||
---|---|---|
.. | ||
basic_string_view | ||
optional | ||
array-view-selftests.c | ||
child-path-selftests.c | ||
cli-utils-selftests.c | ||
command-def-selftests.c | ||
common-utils-selftests.c | ||
copy_bitwise-selftests.c | ||
enum-flags-selftests.c | ||
environ-selftests.c | ||
filtered_iterator-selftests.c | ||
format_pieces-selftests.c | ||
function-view-selftests.c | ||
gdb_tilde_expand-selftests.c | ||
gmp-utils-selftests.c | ||
intrusive_list-selftests.c | ||
lookup_name_info-selftests.c | ||
main-thread-selftests.c | ||
memory-map-selftests.c | ||
memrange-selftests.c | ||
mkdir-recursive-selftests.c | ||
observable-selftests.c | ||
offset-type-selftests.c | ||
optional-selftests.c | ||
packed-selftests.c | ||
parallel-for-selftests.c | ||
parse-connection-spec-selftests.c | ||
path-join-selftests.c | ||
ptid-selftests.c | ||
rsp-low-selftests.c | ||
scoped_fd-selftests.c | ||
scoped_ignore_signal-selftests.c | ||
scoped_mmap-selftests.c | ||
scoped_restore-selftests.c | ||
search-memory-selftests.c | ||
string_view-selftests.c | ||
style-selftests.c | ||
tracepoint-selftests.c | ||
tui-selftests.c | ||
ui-file-selftests.c | ||
unique_xmalloc_ptr_char.c | ||
unpack-selftests.c | ||
utils-selftests.c | ||
vec-utils-selftests.c | ||
xml-utils-selftests.c |