opnsense-ports/benchmarks/libmicro/files/patch-longjmp.c
Franco Fichtner 1516d08007 */*: sync with upstream
Taken from: FreeBSD
2016-07-28 09:44:01 +02:00

11 lines
216 B
C

--- longjmp.c.orig 2011-05-11 00:58:23 UTC
+++ longjmp.c
@@ -51,7 +51,7 @@ benchmark_init()
int
benchmark(void *tsd, result_t *res)
{
- int i = 0;
+ volatile int i = 0;
jmp_buf env;
(void) setjmp(env);