Skip to content

Commit 1a594f0

Browse files
rddunlaprichardweinberger
authored andcommitted
um: elf.h: Fix W=1 warning for empty body in 'do' statement
Use the common kernel style to eliminate a warning: ./arch/x86/um/asm/elf.h:215:32: warning: suggest braces around empty body in ‘do’ statement [-Wempty-body] #define SET_PERSONALITY(ex) do ; while(0) ^ Signed-off-by: Randy Dunlap <[email protected]> Cc: Jeff Dike <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: Anton Ivanov <[email protected]> Cc: [email protected] Signed-off-by: Richard Weinberger <[email protected]>
1 parent 6e16631 commit 1a594f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/um/asm/elf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,6 @@ extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu);
212212
extern long elf_aux_hwcap;
213213
#define ELF_HWCAP (elf_aux_hwcap)
214214

215-
#define SET_PERSONALITY(ex) do ; while(0)
215+
#define SET_PERSONALITY(ex) do {} while(0)
216216

217217
#endif

0 commit comments

Comments
 (0)