]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp: Add '__attribute__((unused))' to variables used only in 'assert(...)'
authorshynur <shynur@outlook.com>
Mon, 17 Feb 2025 15:06:58 +0000 (23:06 +0800)
committerThomas Schwinge <tschwinge@baylibre.com>
Sat, 22 Feb 2025 21:37:50 +0000 (22:37 +0100)
commite759ff08e2e2e7128db7e6313b4218daa367c74f
tree0461b7c7e3afc6899dce08f7ea4d9a01838d10b9
parent4470229653e9e539f389d6f41d013d243d6acafb
libgomp: Add '__attribute__((unused))' to variables used only in 'assert(...)'

Without this attribute, the building process will fail if GCC is configured
with 'CFLAGS=-DNDEBUG'.

libgomp/ChangeLog:

* oacc-mem.c (acc_unmap_data, goacc_exit_datum_1, find_group_last,
goacc_enter_data_internal): Add '__attribute__((unused))'.
* target.c (gomp_unmap_vars_internal): Likewise.
libgomp/oacc-mem.c
libgomp/target.c