aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_test.h
diff options
context:
space:
mode:
authorPavel Skripkin <paskripkin@gmail.com>2024-06-20 23:30:23 +0300
committerAleksandr Nogikh <nogikh@google.com>2024-06-25 09:05:00 +0000
commit20dfeeccf56975c0bc5e488d897dfd90e2650641 (patch)
treeede65983edfb87f894e8c9e1fa5fea0e459f11f4 /executor/executor_test.h
parent04bd2a300f55d565ac5bfaa670c9902d2881fa4b (diff)
executor/linux: fix compilation error with old compilers
My gcc-10 in testing vm compainls during reproducer [0] build with following error: rep.c: In function ‘remove_dir’: rep.c:662:3: error: a label can only be part of a statement and a declaration is not a statement 662 | const int umount_flags = MNT_FORCE | UMOUNT_NOFOLLOW; | ^~~~~ Label followed by declaration is C23 extension, so only new compilers support it. Fix it by moving declaration above `retry` label and put unused attribute to suppress possible warning. [0] https://syzkaller.appspot.com/bug?extid=dcc068159182a4c31ca3 Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Diffstat (limited to 'executor/executor_test.h')
0 files changed, 0 insertions, 0 deletions