diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-05-26 14:26:34 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-05-26 14:26:34 +0000 |
commit | 5ea8860839d3db23461892fbc564af7892a6cbdb (patch) | |
tree | 98ed8ce16350ef4f44fb78dce0c1ba9a9ff2e07d /sys/dev | |
parent | 41a2a2e1bbe9f4ee2618649762dae05f1df0a1d0 (diff) |
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@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/drm_linux.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 <sys/atomic.h> #include <sys/task.h> +/* 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 |