jroose / clpp

Automatically exported from code.google.com/p/clpp
0 stars 1 forks source link

VS 2010 Compiler Warnings #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1) Download beta 2)compile with VS2010

1>------ Build started: Project: clpp, Configuration: Debug Win32 ------
1>  StopWatch.cpp
1>  clppSort_RadixSortGPU.cpp
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppprogram.h(60): 
warning C4244: 'return' : conversion from 'double' to 'size_t', possible loss 
of data
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppsort_radixsortgpu.c
pp(115): warning C4101: 'clStatus' : unreferenced local variable
1>  clppSort_RadixSort.cpp
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppprogram.h(60): 
warning C4244: 'return' : conversion from 'double' to 'size_t', possible loss 
of data
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppsort_radixsort.cpp(
114): warning C4101: 'clStatus' : unreferenced local variable
1>  clppSort_CPU.cpp
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppprogram.h(60): 
warning C4244: 'return' : conversion from 'double' to 'size_t', possible loss 
of data
1>  clppSort_Blelloch.cpp
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppprogram.h(60): 
warning C4244: 'return' : conversion from 'double' to 'size_t', possible loss 
of data
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppsort_blelloch.cpp(4
1): warning C4996: 'sprintf': This function or variable may be unsafe. Consider 
using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. 
See online help for details.
1>          c:\program files (x86)\microsoft visual studio 
10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppsort_blelloch.cpp(4
4): warning C4996: 'sprintf': This function or variable may be unsafe. Consider 
using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. 
See online help for details.
1>          c:\program files (x86)\microsoft visual studio 
10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppsort_blelloch.cpp(4
7): warning C4996: 'sprintf': This function or variable may be unsafe. Consider 
using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. 
See online help for details.
1>          c:\program files (x86)\microsoft visual studio 
10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppsort_blelloch.cpp(5
8): warning C4996: 'sprintf': This function or variable may be unsafe. Consider 
using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. 
See online help for details.
1>          c:\program files (x86)\microsoft visual studio 
10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppsort_blelloch.cpp(1
97): warning C4244: '+=' : conversion from 'double' to 'float', possible loss 
of data
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppsort_blelloch.cpp(2
42): warning C4244: '+=' : conversion from 'double' to 'float', possible loss 
of data
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppsort_blelloch.cpp(2
88): warning C4244: '+=' : conversion from 'double' to 'float', possible loss 
of data
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppsort_blelloch.cpp(3
11): warning C4244: '+=' : conversion from 'double' to 'float', possible loss 
of data
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppsort_blelloch.cpp(3
28): warning C4244: '+=' : conversion from 'double' to 'float', possible loss 
of data
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppsort_blelloch.cpp(3
85): warning C4244: '+=' : conversion from 'double' to 'float', possible loss 
of data
1>  clppSort.cpp
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppprogram.h(60): 
warning C4244: 'return' : conversion from 'double' to 'size_t', possible loss 
of data
1>  clppScan_GPU.cpp
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppprogram.h(60): 
warning C4244: 'return' : conversion from 'double' to 'size_t', possible loss 
of data
1>  clppScan_Default.cpp
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppprogram.h(60): 
warning C4244: 'return' : conversion from 'double' to 'size_t', possible loss 
of data
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppscan_default.cpp(63
): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppscan_default.cpp(12
7): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppscan_default.cpp(17
3): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppscan_default.cpp(21
7): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppscan_default.cpp(23
8): warning C4018: '<' : signed/unsigned mismatch
1>  clppProgram.cpp
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppprogram.h(60): 
warning C4244: 'return' : conversion from 'double' to 'size_t', possible loss 
of data
1>  clppContext.cpp
1>  clpp.cpp
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppprogram.h(60): 
warning C4244: 'return' : conversion from 'double' to 'size_t', possible loss 
of data
1>  benchmark.cpp
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\clppprogram.h(60): 
warning C4244: 'return' : conversion from 'double' to 'size_t', possible loss 
of data
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\benchmark.cpp(176): 
warning C4018: '<' : signed/unsigned mismatch
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\benchmark.cpp(231): 
warning C4244: 'initializing' : conversion from 'double' to 'float', possible 
loss of data
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\benchmark.cpp(263): 
warning C4244: 'initializing' : conversion from 'double' to 'float', possible 
loss of data
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\benchmark.cpp(323): 
warning C4554: '<<' : check operator precedence for possible error; use 
parentheses to clarify precedence
1>c:\users\tim\downloads\gpgpu\opencl\clpp\clpp\src\clpp\benchmark.cpp(348): 
warning C4018: '>' : signed/unsigned mismatch
1>  Generating Code...
1>  clpp.vcxproj -> 
C:\Users\tim\Downloads\GPGPU\OpenCL\CLPP\clpp\bin\Debug\clpp.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Original issue reported on code.google.com by 3dmas...@comcast.net on 17 Jul 2011 at 12:08