mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-22 18:05:10 +00:00
test: fix GCC 16 compile error
Fedora rawhide ships a pre-release of GCC 16 which produces following error: uprobes.c:34:22: error: variable ‘dummy’ set but not used [-Werror=unused-but-set-variable=] 34 | volatile int dummy = 0; | ^~~~~ Marking this variable as "__maybe_unused" to fix the error. Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
b208bec12d
commit
fb59ae504e
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ const char *test_author = "Shashank Balaji <shashank.mahadasyam@sony.com>";
|
|||
* compiler optimization) and use it (to prevent "unused variable" warning)
|
||||
*/
|
||||
void UPROBED_FUNCTION(void) {
|
||||
volatile int dummy = 0;
|
||||
volatile int dummy __maybe_unused = 0;
|
||||
dummy += 1;
|
||||
}
|
||||
/* Calling via volatile function pointer ensures noinline at callsite */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue