Fixes for some Windows compiler warnings (#14490)
authorvaeksare <42353187+vaeksare@users.noreply.github.com>
Thu, 6 Dec 2018 05:24:58 +0000 (21:24 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 6 Dec 2018 05:27:07 +0000 (21:27 -0800)
commit82903dda9b13f982b9fa9d6a4e34e668fb30c561
treec54664b629a96751d3959f52fd57c342bb82be65
parenta6399121da167606bd2c7390bcc9fffdaad43b5c
Fixes for some Windows compiler warnings (#14490)

Summary:
Implement some simple fixes to clean up windows build by fixing compiler warnings. Three main types of warnings were fixes:

1. GCC specific pragmas were changed to not be used on windows.
2. cmake flags that don't exist on windows were removed from windows build
3. Fix a macro that was defined multiple times on Windows.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14490

Differential Revision: D13241988

Pulled By: ezyang

fbshipit-source-id: 38da8354f0e3a3b9c97e33309cdda9fd23c08247
12 files changed:
aten/src/ATen/cpu/vec256/vec256_base.h
aten/src/ATen/cpu/vec256/vec256_int.h
aten/src/ATen/native/cpu/GridSamplerKernel.cpp
aten/src/ATen/test/test_install/CMakeLists.txt
aten/src/TH/THTensorApply.h
aten/src/TH/generic/THTensorApply.hpp
c10/test/util/intrusive_ptr_test.cpp
c10/util/flat_hash_map.h
c10/util/intrusive_ptr.h
c10/util/typeid.h
caffe2/CMakeLists.txt
caffe2/core/common.h