Commit 1a0554c9 authored by Stefano Bonicatti's avatar Stefano Bonicatti

Silence some MSVC warnings

parent 47cfae75
......@@ -35,8 +35,17 @@
// for calculation of the needed alignment
#include <config-vc.h>
#ifdef HAVE_VC
#if defined _MSC_VER
// Lets shut up the "possible loss of data" and "forcing value to bool 'true' or 'false'
#pragma warning ( push )
#pragma warning ( disable : 4244 )
#pragma warning ( disable : 4800 )
#endif
#include <Vc/Vc>
#include <Vc/IO>
#if defined _MSC_VER
#pragma warning ( pop )
#endif
#include <KoOptimizedCompositeOpOver32.h>
#include <KoOptimizedCompositeOpOver128.h>
......
......@@ -20,8 +20,17 @@
#include <config-vc.h>
#ifdef HAVE_VC
#if defined _MSC_VER
// Lets shut up the "possible loss of data" and "forcing value to bool 'true' or 'false'
#pragma warning ( push )
#pragma warning ( disable : 4244 )
#pragma warning ( disable : 4800 )
#endif
#include <Vc/Vc>
#include <Vc/IO>
#if defined _MSC_VER
#pragma warning ( pop )
#endif
#endif
......
......@@ -26,8 +26,17 @@
#pragma GCC diagnostic ignored "-Wundef"
#pragma GCC diagnostic ignored "-Wlocal-type-template-args"
#endif
#if defined _MSC_VER
// Lets shut up the "possible loss of data" and "forcing value to bool 'true' or 'false'
#pragma warning ( push )
#pragma warning ( disable : 4244 )
#pragma warning ( disable : 4800 )
#endif
#include <Vc/Vc>
#include <Vc/IO>
#if defined _MSC_VER
#pragma warning ( pop )
#endif
#endif
#include <QDomDocument>
......
......@@ -35,7 +35,9 @@
#pragma warning(disable: 4290) // disable "C++ exception specification ignored" warning
#endif
#if !defined _MSC_VER
#pragma GCC diagnostic ignored "-Wcast-align"
#endif
typedef double(*PtrToDouble)(const quint8*, int);
typedef void (*PtrFromDouble)(quint8*, int, double);
......
......@@ -25,7 +25,9 @@
#define HASH_SIZE (1<< HASH_LOG)
#define HASH_MASK (HASH_SIZE-1)
#if !defined _MSC_VER
#pragma GCC diagnostic ignored "-Wcast-align"
#endif
#define UPDATE_HASH(v,p) { v = *((quint16*)p); v ^= *((quint16*)(p+1))^(v>>(16-HASH_LOG)); }
#define MAX_COPY 32
......
......@@ -22,7 +22,9 @@
#ifndef _KO_LAB_DARKEN_COLOR_TRANSFORMATION_H_
#define _KO_LAB_DARKEN_COLOR_TRANSFORMATION_H_
#if !defined _MSC_VER
#pragma GCC diagnostic ignored "-Wcast-align"
#endif
template<typename _lab_channels_type_>
struct KoLabDarkenColorTransformation : public KoColorTransformation {
......
......@@ -20,8 +20,17 @@
#ifndef __KOSTREAMED_MATH_H
#define __KOSTREAMED_MATH_H
#if defined _MSC_VER
// Lets shut up the "possible loss of data" and "forcing value to bool 'true' or 'false'
#pragma warning ( push )
#pragma warning ( disable : 4244 )
#pragma warning ( disable : 4800 )
#endif
#include <Vc/Vc>
#include <Vc/IO>
#if defined _MSC_VER
#pragma warning ( pop )
#endif
#include <stdint.h>
#include <KoAlwaysInline.h>
......@@ -29,7 +38,9 @@
#define BLOCKDEBUG 0
#if !defined _MSC_VER
#pragma GCC diagnostic ignored "-Wcast-align"
#endif
template<Vc::Implementation _impl>
struct KoStreamedMath {
......
......@@ -29,8 +29,17 @@
#pragma GCC diagnostic ignored "-Wlocal-type-template-args"
#endif
#if defined _MSC_VER
// Lets shut up the "possible loss of data" and "forcing value to bool 'true' or 'false'
#pragma warning ( push )
#pragma warning ( disable : 4244 )
#pragma warning ( disable : 4800 )
#endif
#include <Vc/Vc>
#include <Vc/support.h>
#if defined _MSC_VER
#pragma warning ( pop )
#endif
#else /* HAVE_VC */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment