From owner-freebsd-hackers@freebsd.org Thu Jan 16 09:21:24 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9E2F722FCE0 for ; Thu, 16 Jan 2020 09:21:24 +0000 (UTC) (envelope-from bsdlisten@gmail.com) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47yzGD3mG1z3Dgl; Thu, 16 Jan 2020 09:21:24 +0000 (UTC) (envelope-from bsdlisten@gmail.com) Received: by mail-io1-xd2c.google.com with SMTP id m25so5375973ioo.8; Thu, 16 Jan 2020 01:21:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pcE2Tw448QWwJnUBBWbwCRkjqt6XJYajQ3cld9E3OOE=; b=i1l1bQ/4NOr38xYd9r8HEIugKCDZdTyHVflfYVAs8qkajar4LtwHRvOj7InEv2qS9e OJhPAx+l65L1w38gxdGxreGnhC0si71PKlzGKl+yLnuLeGt+MbjXhjn9ECAe0ZAiBL6Z hiQL+P57ktjFxdkmMpGC0yRAPTFqYejrCJkX+I+e4lF9wkdLe6bhbkUxayFgHsv9afNA hM5PXJe8K5d1jlW2Zcpjx260XSbc0BevvlZC4OycXK4DETACijwnZtjGGWXiLMdi+rSs GXiZyfLN0mQfIfA0Wlg+hTbujIaoenDgUZ1hwPd29x2KI0O1bPTQW0mZYHo/391CKdbG icfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pcE2Tw448QWwJnUBBWbwCRkjqt6XJYajQ3cld9E3OOE=; b=TW8jTG6G+0VyCk2bfowE7VNE/B6xaOQZ9elHD7IpXKrP/RSb8cLWsZrCdR1V6kC+j0 9bpXF6zZ2/T4jULFuP7VjOSfCkwPQvmZa8E/La2qUElVOkVWGuqYPRV7x9ujEtPRI/y8 kc8e5aDskxEgCjEd7lfGa0e8Y/RvTuXCN+akNc5eaTxCPmgCbhAElImLXWb7pwSgMEbh EA86GIdmu8deA3nIEarZZrQ6zeU1K3A7cMvWXhN1GfH7YzzH5LWsokkYSYOVQyC8gSX3 oNWusENcaz//jKX5Pffhh9fCtNS+sQx6ihKuiCy4pnD7Zbp0o8DN/hQERQl9/jqLcVR3 N6VA== X-Gm-Message-State: APjAAAWJWO5yNHglocRG0UIsHkEgDR855tSyAJwTSpYeAlTLlueqE+RI WagGlvtJ8bi4dFAsxcF/PYVDGLMhDF3SEXSG1z+JOw== X-Google-Smtp-Source: APXvYqyNmBgFLF7a+OCbKy9W3vgBY73m9awOwNeGHgmCGjFzIlZANmIm2EG+/rAyVJHRmaW44vNJskRyKaYlnZAol04= X-Received: by 2002:a5d:84d1:: with SMTP id z17mr4005821ior.169.1579166483276; Thu, 16 Jan 2020 01:21:23 -0800 (PST) MIME-Version: 1.0 References: <20200116091919.GA21259@spindle.one-eyed-alien.net> In-Reply-To: <20200116091919.GA21259@spindle.one-eyed-alien.net> From: Rares Aioanei Date: Thu, 16 Jan 2020 11:21:12 +0200 Message-ID: Subject: Re: Clean up GNU-isms in base? To: Brooks Davis Cc: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47yzGD3mG1z3Dgl X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2020 09:21:24 -0000 Alright, thanks. I'll start looking into it, time provided, and update the list accordingly. On Thu, Jan 16, 2020 at 11:19 AM Brooks Davis wrote: > > On Thu, Jan 16, 2020 at 10:17:26AM +0200, Rares Aioanei wrote: > > While compiling world with extra warnings I noticed compiler messages > > about GNU extensions being used in the code, for example the use of typeof() or > > warnings like this : "/usr/src/lib/libpmc/pmu-events/json.h:22:35: > > warning: token pasting of ',' and __VA_ARGS__ is a GNU extension > > [-Wgnu-zero-variadic-macro-arguments]". Question is : is there an > > interest in doing a "clean-up" of such constructs in the code? > > To the extent that the standard provides a useful mechanism (as, IIRC, > it does here), I think this is a good idea. > > Right now we're probably confined to mechanisms supported in C99, but > once we've finished kicking gcc 4.2.1 out later this year, we'll be able > to use C11 features. > > -- Brooks