[llvm-commits] [test-suite] r164894 - /test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc
Hal Finkel
hfinkel at anl.gov
Sat Sep 29 06:32:59 PDT 2012
Author: hfinkel
Date: Sat Sep 29 08:32:58 2012
New Revision: 164894
URL: http://llvm.org/viewvc/llvm-project?rev=164894&view=rev
Log:
silence new warnings in TSVC; allow compiling in strict mode
Modified:
test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc
Modified: test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc?rev=164894&r1=164893&r2=164894&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc (original)
+++ test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc Sat Sep 29 08:32:58 2012
@@ -25,6 +25,7 @@
#define ntimes_default 200000
#define digits_default 6
+#define _XOPEN_SOURCE 600
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
@@ -5499,7 +5500,7 @@
#endif // TESTS & CONTROL_LOOPS
void set(int* ip, TYPE* s1, TYPE* s2){
- posix_memalign(&xx, ALIGNMENT, LEN*sizeof(TYPE));
+ posix_memalign((void **) &xx, ALIGNMENT, LEN*sizeof(TYPE));
printf("\n");
for (int i = 0; i < LEN; i = i+5){
ip[i] = (i+4);
@@ -5533,7 +5534,7 @@
int* ip;
TYPE s1,s2;
- posix_memalign(&ip, ALIGNMENT, LEN*sizeof(TYPE));
+ posix_memalign((void **) &ip, ALIGNMENT, LEN*sizeof(TYPE));
if (argc > 1)
ntimes = atoi(argv[1]);
More information about the llvm-commits
mailing list