Commit 9e63a233 authored by Halla Rempt's avatar Halla Rempt

Fix warning: this weird way of handling enums makes clang barf

parent b7a941bf
......@@ -41,6 +41,12 @@
#define PG_US_EXECUTIVE_WIDTH 191.0
#define PG_US_EXECUTIVE_HEIGHT 254.0
// To ignore the clang warning we get because we have a
// for (int i = 0; pageFormatInfo[i].format != -1 ;i++)
// construct and pageFormatInfo has (KoPageFormat::Format) - 1
#pragma GCC diagnostic ignored "-Wtautological-constant-out-of-range-compare"
struct PageFormatInfo {
KoPageFormat::Format format;
QPrinter::PageSize qprinter;
......
......@@ -300,6 +300,7 @@ static QDataStream& operator>>(QDataStream& s, KoXmlPackedItem& item)
#define HASH_SIZE (1<< HASH_LOG)
#define HASH_MASK (HASH_SIZE-1)
#pragma GCC diagnostic ignored "-Wcast-align"
#define UPDATE_HASH(v,p) { v = *((quint16*)p); v ^= *((quint16*)(p+1))^(v>>(16-HASH_LOG)); }
#define MAX_COPY 32
......
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