set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-macros -Wno-padded")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-c11-extensions -Wno-gnu")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-command-line-argument")
if(WITH_SSE2)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mssse3")
endif()
#include <winpr/thread.h>
#include <winpr/string.h>
+#if __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wparentheses-equality"
+#endif /* __clang__ */
#include <gst/gst.h>
+#if __clang__
+#pragma clang diagnostic pop
+#endif /* __clang__ */
+
#if GST_VERSION_MAJOR > 0
#include <gst/video/videooverlay.h>
#else
#include <winpr/string.h>
+#if __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wparentheses-equality"
+#endif /* __clang__ */
#include <gst/gst.h>
+#if __clang__
+#pragma clang diagnostic pop
+#endif /* __clang__ */
+
#include <gst/app/gstappsrc.h>
#include <gst/app/gstappsink.h>
#include "config.h"
#endif
-
#include <freerdp/client/file.h>
#include <freerdp/client/cmdline.h>
#include <unistd.h>
#endif
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <freerdp/log.h>
#define TAG CLIENT_TAG("common")
#define TEST_MIX \
((last_line == 0 && pixel == mix) || \
(last_line != 0 && pixel == (ypixel ^ mix)))
-#define TEST_FOM (TEST_FILL || TEST_MIX)
-#define TEST_COLOR (pixel == last_pixel)
+#define TEST_FOM TEST_FILL || TEST_MIX
+#define TEST_COLOR pixel == last_pixel
#define TEST_BICOLOR \
( \
(pixel != last_pixel) && \
mix_count = 0;
}
- if (!TEST_COLOR)
+ if (!(TEST_COLOR))
{
if (color_count > 3 &&
color_count >= fill_count &&
bicolor_spin = 0;
}
- if (!TEST_FOM)
+ if (!(TEST_FOM))
{
if (fom_count > 3 &&
fom_count >= fill_count &&
mix_count = 0;
}
- if (!TEST_COLOR)
+ if (!(TEST_COLOR))
{
if (color_count > 3 &&
color_count >= fill_count &&
bicolor_spin = 0;
}
- if (!TEST_FOM)
+ if (!(TEST_FOM))
{
if (fom_count > 3 &&
fom_count >= fill_count &&
{
UINT32 index;
UINT32 bits;
- UINT32 nbits;
+ INT32 nbits;
BYTE* SrcPtr;
BYTE* SrcEnd;
UINT16 Mask;
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/path.h>
#include <winpr/image.h>
return 1;
}
-static BYTE* test_progressive_load_bitmap(char* path, char* file, UINT32* size, int quarter)
+static BYTE* test_progressive_load_bitmap(char* path, char* file, size_t* size, int quarter)
{
int status;
BYTE* buffer;
#include "config.h"
#endif
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/crypto.h>
#include <winpr/print.h>
#include <stdio.h>
#include <string.h>
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/crypto.h>
UINT32 c2)
{
int d, maxd = 0;
- d = ABS(ALF(c1) - ALF(c2));
+ d = ABS((INT32)(ALF(c1) - ALF(c2)));
if (d > maxd) maxd = d;
- d = ABS(RED(c1) - RED(c2));
+ d = ABS((INT32)(RED(c1) - RED(c2)));
if (d > maxd) maxd = d;
- d = ABS(GRN(c1) - GRN(c2));
+ d = ABS((INT32)(GRN(c1) - GRN(c2)));
if (d > maxd) maxd = d;
- d = ABS(BLU(c1) - BLU(c2));
+ d = ABS((INT32)(BLU(c1) - BLU(c2)));
if (d > maxd) maxd = d;
#include <stdlib.h>
#include <string.h>
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <freerdp/log.h>
#include "config.h"
#endif
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/path.h>
#include <winpr/print.h>
#include "config.h"
#endif /* HAVE_CONFIG_H */
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/file.h>
#include <stdlib.h>
#include <string.h>
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include "registry_reg.h"
#include <stdlib.h>
#include <sys/system_properties.h>
#include <unistd.h>
+#include <winpr/wtypes.h>
static pthread_once_t g_once;
static int g_inited;
#include "config.h"
#endif
+#include <winpr/wtypes.h>
#include <winpr/timezone.h>
#include <winpr/crt.h>
#include "../log.h"
#include "config.h"
#endif
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/image.h>
#include <stdlib.h>
#include <string.h>
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/ini.h>
#include <stdlib.h>
#include <string.h>
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/sam.h>
#include <winpr/print.h>
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/path.h>
#include <winpr/print.h>
#include "wlog/PacketMessage.h"
+#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/stream.h>