diff options
author | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2019-09-05 20:16:56 +0000 |
---|---|---|
committer | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2019-09-05 20:16:56 +0000 |
commit | 7b769dc632fb8828b0618aa8f4cde1f9011fd017 (patch) | |
tree | 68fad202c764c71751abf7be79ad4be7bf06dda7 /benchmarks/bonnie++/files/patch-getc_putc.cpp | |
parent | - no longer hosting distfiles (diff) |
Update to 1.98 and fix type conversion warnings
PR: 210855
Submitted by: Mark Millard <marklmi26-fbsd@yahoo.com>
Reviewed by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
Diffstat (limited to 'benchmarks/bonnie++/files/patch-getc_putc.cpp')
-rw-r--r-- | benchmarks/bonnie++/files/patch-getc_putc.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/benchmarks/bonnie++/files/patch-getc_putc.cpp b/benchmarks/bonnie++/files/patch-getc_putc.cpp new file mode 100644 index 000000000000..3ff9c2956453 --- /dev/null +++ b/benchmarks/bonnie++/files/patch-getc_putc.cpp @@ -0,0 +1,20 @@ +--- getc_putc.cpp.orig 2018-09-15 09:00:31.000000000 +0200 ++++ getc_putc.cpp 2019-09-05 12:09:25.705704000 +0200 +@@ -206,7 +206,7 @@ + return 1; + } + fflush(NULL); +- TEST_FUNC_READ("getc()", if( (c = getc(fp)) == EOF), res[Getc]); ++ TEST_FUNC_READ("getc()", int tmp = getc(fp); c = (char)tmp; if (tmp == EOF), res[Getc]); + if(fseek(fp, 0, SEEK_SET) != 0) + { + fprintf(stderr, "Can't seek.\n"); +@@ -221,7 +221,7 @@ + return 1; + } + fflush(NULL); +- TEST_FUNC_READ("getc_unlocked()", if( (c = getc_unlocked(fp)) == EOF), res[GetcUnlocked]); ++ TEST_FUNC_READ("getc_unlocked()", int tmp = getc_unlocked(fp); c = (char)tmp; if (tmp == EOF), res[GetcUnlocked]); + + if(!quiet) + printf("done\n"); |