[clfft] 16/21: fixing gcc warnings, typo in examples

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Mar 16 13:14:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository clfft.

commit 238cb52ac3c12a150377b3ef7f1feb705269b05d
Author: bragadeesh <bragadeesh.natarajan at amd>
Date:   Wed Mar 9 14:48:35 2016 -0800

    fixing gcc warnings, typo in examples
---
 src/examples/fft1d.c     | 2 +-
 src/examples/fft2d.c     | 2 +-
 src/examples/fft3d.c     | 2 +-
 src/tests/cl_transform.h | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/examples/fft1d.c b/src/examples/fft1d.c
index 00e3e70..d088bfb 100644
--- a/src/examples/fft1d.c
+++ b/src/examples/fft1d.c
@@ -71,7 +71,7 @@ int main( void )
     X = (float *)malloc(N * 2 * sizeof(*X));
 
     /* print input array */
-    printf("\nPerforming fft on an one dimensional array of size N = %ul\n", (unsigned long)N);
+    printf("\nPerforming fft on an one dimensional array of size N = %u\n", (unsigned long)N);
     int print_iter = 0;
     while(print_iter<N) {
         float x = (float)print_iter;
diff --git a/src/examples/fft2d.c b/src/examples/fft2d.c
index 5a6f4f3..2b901a9 100644
--- a/src/examples/fft2d.c
+++ b/src/examples/fft2d.c
@@ -74,7 +74,7 @@ int main( void )
 
     /* print input array just using the
      * indices to fill the array with data */
-    printf("\nPerforming fft on an two dimensional array of size N0 x N1 : %ul x %ul\n", (unsigned long)N0, (unsigned long)N1);
+    printf("\nPerforming fft on an two dimensional array of size N0 x N1 : %u x %u\n", (unsigned long)N0, (unsigned long)N1);
 	size_t i, j;
     i = j = 0;
     for (i=0; i<N0; ++i) {
diff --git a/src/examples/fft3d.c b/src/examples/fft3d.c
index cd92294..56732b1 100644
--- a/src/examples/fft3d.c
+++ b/src/examples/fft3d.c
@@ -74,7 +74,7 @@ int main( void )
 
     /* print input array just using the
      * indices to fill the array with data */
-    printf("\nPerforming fft on an two dimensional array of size N0 x N1 x N2 : %ul x %ul x %ul\n", (unsigned long)N0, (unsigned long)N1, (unsigned long)N2);
+    printf("\nPerforming fft on an two dimensional array of size N0 x N1 x N2 : %u x %u x %u\n", (unsigned long)N0, (unsigned long)N1, (unsigned long)N2);
     size_t i, j, k;
     i = j = k = 0;
     for (i=0; i<N0; ++i) {
diff --git a/src/tests/cl_transform.h b/src/tests/cl_transform.h
index 7bc30c1..3f9c9eb 100644
--- a/src/tests/cl_transform.h
+++ b/src/tests/cl_transform.h
@@ -672,7 +672,7 @@ public:
 	void set_input_precallback_userdatatype() {
 		cl_int status = 0;
 
-		char* precallbackstr = STRINGIFY(PRE_MULVAL_UDT);
+		const char* precallbackstr = STRINGIFY(PRE_MULVAL_UDT);
 
 		size_t totalPts = input.total_number_of_points_including_data_and_intervening();
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git



More information about the debian-science-commits mailing list