summaryrefslogtreecommitdiff
path: root/volk/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-05-09 20:31:56 -0700
committerJosh Blum <josh@joshknows.com>2011-05-10 13:49:31 -0700
commit21d6870a6ef5284a5941dce1484bcfff6684ffea (patch)
tree318a4ab75f91f48036ac9b9d01c339b959769d22 /volk/include
parent3381729bb788e2d4f158d8efb6196a45e1620946 (diff)
volk: cmake support for volk (gcc + msvc)
Diffstat (limited to 'volk/include')
-rw-r--r--volk/include/volk/volk_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/volk/include/volk/volk_common.h b/volk/include/volk/volk_common.h
index 12623073c3..2c935d1fb3 100644
--- a/volk/include/volk/volk_common.h
+++ b/volk/include/volk/volk_common.h
@@ -33,6 +33,14 @@
#endif
////////////////////////////////////////////////////////////////////////
+// Ignore annoying warnings in MSVC
+////////////////////////////////////////////////////////////////////////
+#if defined(_MSC_VER)
+# pragma warning(disable: 4244) //'conversion' conversion from 'type1' to 'type2', possible loss of data
+# pragma warning(disable: 4305) //'identifier' : truncation from 'type1' to 'type2'
+#endif
+
+////////////////////////////////////////////////////////////////////////
// C-linkage declaration macros
// FIXME: due to the usage of complex.h, require gcc for c-linkage
////////////////////////////////////////////////////////////////////////