openbsd-ports/security/libnettle/patches/patch-examples_eratosthenes_c
sebastia b0d98745cf Fix build with gcc-2.95
OK jasper@
2011-06-08 08:39:02 +00:00

20 lines
555 B
Plaintext

$OpenBSD: patch-examples_eratosthenes_c,v 1.1 2011/06/08 08:39:02 sebastia Exp $
fix build with gcc-2.95
--- examples/eratosthenes.c.orig Wed Jun 8 10:06:22 2011
+++ examples/eratosthenes.c Wed Jun 8 10:06:50 2011
@@ -144,11 +144,11 @@ find_first_one (unsigned long x)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
7,
};
+ unsigned i = 0;
/* Isolate least significant bit */
x &= -x;
- unsigned i = 0;
#if NEED_HANDLE_LARGE_LONG
#ifndef SIZEOF_LONG
/* Can not be tested by the preprocessor. May generate warnings