From 5ea8860839d3db23461892fbc564af7892a6cbdb Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 26 May 2017 14:26:34 +0000 Subject: The Linux code really isn't up to the same standard as our other code, and clang complains about it a lot. Since we don't want to fix the code, suppress certain warnings using #pragma clang diagnostic. ok jsg@ --- sys/dev/pci/drm/drm_linux.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/drm/drm_linux.h b/sys/dev/pci/drm/drm_linux.h index 61102431244..637cd04e265 100644 --- a/sys/dev/pci/drm/drm_linux.h +++ b/sys/dev/pci/drm/drm_linux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_linux.h,v 1.49 2017/04/16 17:16:21 bluhm Exp $ */ +/* $OpenBSD: drm_linux.h,v 1.50 2017/05/26 14:26:33 kettenis Exp $ */ /* * Copyright (c) 2013, 2014, 2015 Mark Kettenis * @@ -18,6 +18,15 @@ #include #include +/* The Linux code doesn't meet our usual standards! */ +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wenum-conversion" +#pragma clang diagnostic ignored "-Winitializer-overrides" +#pragma clang diagnostic ignored "-Wtautological-pointer-compare" +#pragma clang diagnostic ignored "-Wunneeded-internal-declaration" +#pragma clang diagnostic ignored "-Wunused-const-variable" +#endif + typedef int irqreturn_t; #define IRQ_NONE 0 #define IRQ_HANDLED 1 -- cgit v1.2.3