diff --git a/sysutils/reptyr/files/patch-platform_freebsd_arch_x86__common.h b/sysutils/reptyr/files/patch-platform_freebsd_arch_x86__common.h new file mode 100644 index 000000000000..7263e4e74dc4 --- /dev/null +++ b/sysutils/reptyr/files/patch-platform_freebsd_arch_x86__common.h @@ -0,0 +1,27 @@ +--- platform/freebsd/arch/x86_common.h.orig 2020-09-29 14:29:59.000000000 -0700 ++++ platform/freebsd/arch/x86_common.h 2021-12-01 19:58:27.954536000 -0800 +@@ -42,21 +42,19 @@ + } + + static inline unsigned long arch_get_register(struct ptrace_child *child, unsigned long oft){ +- int ret; + struct reg regs; + +- ret = ptrace_command(child, PT_GETREGS, ®s); ++ (void) ptrace_command(child, PT_GETREGS, ®s); + + return *ptr(®s,oft); + } + + static inline void arch_set_register(struct ptrace_child *child, unsigned long oft, unsigned long val){ +- int ret; + struct reg regs; + +- ret = ptrace_command(child, PT_GETREGS, ®s); ++ (void) ptrace_command(child, PT_GETREGS, ®s); + *ptr(®s,oft)=val; +- ret = ptrace_command(child, PT_SETREGS, ®s); ++ (void) ptrace_command(child, PT_SETREGS, ®s); + } + + static inline int arch_save_syscall(struct ptrace_child *child) {