nelhage / reptyr

Reparent a running program to a new terminal
MIT License
5.71k stars 216 forks source link

x86_common.h: Fix buld under LLVM 13 on FreeBSD #134

Closed cschuber closed 2 years ago

cschuber commented 2 years ago

Fix the following error under LLVM 13 on FreeBSD.

In file included from platform/freebsd/freebsd_ptrace.c:69: In file included from platform/freebsd/arch/amd64.h:23: platform/freebsd/arch/x86_common.h:45:6: error: variable 'ret' set but not used [-Werror,-Wunused-but-set-variable] int ret; ^ platform/freebsd/arch/x86_common.h:54:6: error: variable 'ret' set but not used [-Werror,-Wunused-but-set-variable] int ret; ^ 2 errors generated.

nelhage commented 2 years ago

Thanks!