From: jsg Date: Tue, 30 Jan 2018 08:31:38 +0000 (+0000) Subject: disable -Wformat-zero-length when building with gcc X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0d1e37a0ae6f52fb603037ada1de2356e2ae7428;p=openbsd disable -Wformat-zero-length when building with gcc -Wformat includes -Wformat-zero-length with gcc 4.2 which breaks building unmodified atom.c with the SDEBUG macro "warning: zero-length kprintf format string" --- diff --git a/sys/dev/pci/drm/drm_linux.h b/sys/dev/pci/drm/drm_linux.h index 483c5ca5b9c..c4fb5d51cea 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.69 2018/01/30 08:27:17 jsg Exp $ */ +/* $OpenBSD: drm_linux.h,v 1.70 2018/01/30 08:31:38 jsg Exp $ */ /* * Copyright (c) 2013, 2014, 2015 Mark Kettenis * Copyright (c) 2017 Martin Pieuchot @@ -50,6 +50,8 @@ #pragma clang diagnostic ignored "-Wtautological-compare" #pragma clang diagnostic ignored "-Wunneeded-internal-declaration" #pragma clang diagnostic ignored "-Wunused-const-variable" +#else +#pragma GCC diagnostic ignored "-Wformat-zero-length" #endif typedef int irqreturn_t;