From owner-freebsd-stable@freebsd.org Mon Aug 7 15:20:25 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2617FDD8FDD for ; Mon, 7 Aug 2017 15:20:25 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id EBDE9701AB for ; Mon, 7 Aug 2017 15:20:24 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: by mailman.ysv.freebsd.org (Postfix) id E849BDD8FDA; Mon, 7 Aug 2017 15:20:24 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7CC8DD8FD9 for ; Mon, 7 Aug 2017 15:20:24 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-ua0-x22d.google.com (mail-ua0-x22d.google.com [IPv6:2607:f8b0:400c:c08::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AB564701A9 for ; Mon, 7 Aug 2017 15:20:24 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: by mail-ua0-x22d.google.com with SMTP id f9so3184017uaf.4 for ; Mon, 07 Aug 2017 08:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sippysoft-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=mqEytjiJjXiT9Q6ZKOpEG2qk6cmcnSlfkutCt1zQkhA=; b=PqirG1+r4qoFiq955jAYQSLSpUAhiIjNwpqPzC+8MHG8TXykN0LIYxly0GbHF3jUzw mjcUlI2BkdltpfD1X0B2duLQkNov5fqtEky/M0Ji83FtfCbRnQrH+3NuwTs3+uryyWZ5 0wjF5fRsp1VoZsMAPQZvtyw9SoKpuAvvMTm1beB1gu5FXLedQu8LuYVKLZY89ptvLfpJ O52xVRwEeOcKk0DJPcA68tEn7tnkVg6yyh+Q0Bts+pX0/iLsUnAb18OSza33JMw8cvIn eDgq/a+vLLx8GR+zWPa/XX5WfcVF1UZlCkeMdBRVttPwzO7XCLgCy0gpbnFizLtXcHt6 cS3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=mqEytjiJjXiT9Q6ZKOpEG2qk6cmcnSlfkutCt1zQkhA=; b=UeZzHoh4m8Zm50uS9tL4vLKDY4Eb7XkWFgPz38McQuytkccNlgD5NGIlFYknwEvtjt afBnYQLDvR3LvioiAA3bQuOpjaLfmep9fNehe9wueKPpATPf19qtEjSA5fzkHmlJ99NW Kfpn/9zmU18R2I5ebTN0lGSV1ifx6Re7r39Hj3S8vgtPX7XXB2QWrnrsMpnu90YWGKfM kxZgaqF4lDRFrtr+Q8+ptlfGkogZFVT/muoRpjbCyTcLzkPsOn6YvZ4iHe9QEOALRy92 Lpj9oWTx0D9CzrLcAa2P/9GWb7vEoUfsJV3l9N+DE+v4KCPMqhEbExDbHqfeq9kfFtgx lZIg== X-Gm-Message-State: AHYfb5iNiJTsE4y8fSeDKp3+r2G5+WAzC1jGb0Qya3tUXBg36YrDd9nx noVQNFmAwrulL9lROE6KQeeOuMG1UHwTpUE= X-Received: by 10.176.23.77 with SMTP id k13mr650540uaf.128.1502119223576; Mon, 07 Aug 2017 08:20:23 -0700 (PDT) MIME-Version: 1.0 Sender: sobomax@sippysoft.com Received: by 10.176.3.148 with HTTP; Mon, 7 Aug 2017 08:20:23 -0700 (PDT) In-Reply-To: References: From: Maxim Sobolev Date: Mon, 7 Aug 2017 08:20:23 -0700 X-Google-Sender-Auth: 03SpWn9Bl2vR5IaB8VptGdr8xRw Message-ID: Subject: Re: 11.1-RELEASE has issue with system headers in pedantic mode (type nullability specifier) To: stable@freebsd.org, freebsd-toolchain@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Aug 2017 15:20:25 -0000 One way to defeat this would be to mark those headers with the #pragma clang system_header. As per: https://clang.llvm.org/docs/UsersManual.html#id27 -Max On Mon, Aug 7, 2017 at 6:20 AM, Maxim Sobolev wrote: > Hi, we noticed that some of our internal packages fail the build on 11.1 > now with -pedantic: > > *00:31:09.178* Warning: Object directory not changed from original /tmp/m= nt/dncd/work/dncd-20170627161415*00:31:09.178* cc -pipe -g3 -O0 -pipe -fsta= ck-protector -fno-strict-aliasing -Wall -pedantic -O0 -g3 -g3 -O0 -pipe -= MD -MF.depend.main.o -MTmain.o -std=3Dgnu99 -fstack-protector-strong -Wsys= tem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-s= ign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-ta= utological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-= function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-pac= ked-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunus= ed-arguments -c main.c -o main.o*00:31:09.455* In file included from main.= c:17:*00:31:09.456* /usr/include/err.h:63:27: error: type nullability speci= fier '_Nullable' is a Clang extension [-Werror,-Wnullability-extension]*00:= 31:09.456* void err_set_exit(void (* _Nullable)(int));*00:31:09.456* = ^*00:31:09.456* In file included from main.c:19:*= 00:31:09.456* /usr/include/signal.h:87:27: error: type nullability specifie= r '_Nonnull' is a Clang extension [-Werror,-Wnullability-extension]*00:31:0= 9.456* int sigpending(sigset_t * _Nonnull); > > > I am not sure what the solution might be, perhaps change pedantic to make= this condition non-fatal in pedantic mode? > > > -Max > >