windows cuda toolkit library have tons of weird warnings
Created by: dzhwinter
[ 50%] Building CXX object paddle/fluid/platform/CMakeFiles/enforce.dir/enforce.cc.obj
cd /d C:\Users\d\source\repos\Paddle\bazel-windows\paddle\fluid\platform && C:\PROGRA~2\MINGW-~1\I686-8~1.0-P\mingw32\bin\G__~1.EXE -DANY_IMPL_ANY_CAST_MOVEABLE -DPADDLE_DISABLE_PROFILER -DPADDLE_DISABLE_RDMA -DPADDLE_DISABLE_TIMER -DPADDLE_USE_DSO -DPADDLE_USE_OPENBLAS -DPADDLE_USE_PTHREAD_BARRIER -DPADDLE_USE_PTHREAD_SPINLOCK -DPADDLE_VERSION=0.0.0 -DPADDLE_WITHOUT_GOLANG -DPADDLE_WITH_CUDA -DPADDLE_WITH_TESTING @CMakeFiles/enforce.dir/includes_CXX.rsp -mavx -std=c++11 -fPIC -fno-omit-frame-pointer -Wall -Wextra -Werror -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wno-unused-parameter -Wno-unused-function -Wno-error=literal-suffix -Wno-error=sign-compare -Wno-error=unused-local-typedefs -Wno-error=ignored-attributes -Wno-error=terminate -O3 -DNDEBUG -o CMakeFiles\enforce.dir\enforce.cc.obj -c C:\Users\d\source\repos\Paddle\paddle\fluid\platform\enforce.cc
In file included from C:/PROGRA~1/NVIDIA~2/CUDA/v8.0/include/driver_types.h:53,
from C:/PROGRA~1/NVIDIA~2/CUDA/v8.0/include/cublas_api.h:72,
from C:/PROGRA~1/NVIDIA~2/CUDA/v8.0/include/cublas_v2.h:65,
from C:/Users/d/source/repos/Paddle/paddle/fluid/platform/enforce.h:22,
from C:\Users\d\source\repos\Paddle\paddle\fluid\platform\enforce.cc:15:
C:/PROGRA~1/NVIDIA~2/CUDA/v8.0/include/host_defines.h:84: error: "__cdecl" redefined [-Werror]
#define __cdecl
<built-in>: note: this is the location of the previous definition
In file included from C:/PROGRA~1/NVIDIA~2/CUDA/v8.0/include/cuComplex.h:65,
from C:/PROGRA~1/NVIDIA~2/CUDA/v8.0/include/cublas_api.h:73,
from C:/PROGRA~1/NVIDIA~2/CUDA/v8.0/include/cublas_v2.h:65,
from C:/Users/d/source/repos/Paddle/paddle/fluid/platform/enforce.h:22,
from C:\Users\d\source\repos\Paddle\paddle\fluid\platform\enforce.cc:15:
C:/PROGRA~1/NVIDIA~2/CUDA/v8.0/include/vector_types.h:75: error: ignoring #pragma warning [-Werror=unknown-pragmas]
#pragma warning(push)
C:/PROGRA~1/NVIDIA~2/CUDA/v8.0/include/vector_types.h:76: error: ignoring #pragma warning [-Werror=unknown-pragmas]
#pragma warning(disable: 4201 4408)
C:/PROGRA~1/NVIDIA~2/CUDA/v8.0/include/vector_types.h:352: error: ignoring #pragma warning [-Werror=unknown-pragmas]
#pragma warning(pop)