scrub/genrand-return-value.patch
Timm Bäder c102dce615 Add a patch to fix a compiler warning
genrand() returns an int. clang reports an error here.
2020-11-27 14:01:47 +01:00

13 lines
345 B
Diff

diff -ruN scrub-2.5.2.orig/src/genrand.c scrub-2.5.2/src/genrand.c
--- scrub-2.5.2.orig/src/genrand.c 2012-06-21 00:00:27.000000000 +0200
+++ scrub-2.5.2/src/genrand.c 2020-11-27 13:57:59.866410480 +0100
@@ -106,7 +106,7 @@
buf[n] = result;
}
#endif
- return;
+ return 0;
}
}