From owner-freebsd-current@FreeBSD.ORG Fri Jul 27 18:25:23 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3242E106566C for ; Fri, 27 Jul 2012 18:25:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 043868FC1A for ; Fri, 27 Jul 2012 18:25:22 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so5787502pbb.13 for ; Fri, 27 Jul 2012 11:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=I5zSyEV5hJUPqx+g41L5R4AjslCy5gCMHM0t9Awd4pM=; b=bvcInWM7eJtXtG6IPrU2LzRJ+njQ2syoE3nvl0kcRYID/nunn/83NGL6q0NvFGD9TX IML1gnnmTCi+JIsvtpop8y1BjTrlm9+d2itCFJRftoiv8CTPZ4mXCROEsIwjjVJTjRSM oLFqaR+/+3TYFdxRjmJEQFDcP9idOJSjKCVVJI/XIXR6s7LvhVcWx58udpDJqv/uJNTO KwQF3pGOBU2GQuas0l1uL5HiFwd2G9y52Yhh87C5nIOU6hfwpyf4ePoAT0OsJ1FkHBTE JXvQ9uPuwQXnA5GoVqbWYpyGmNmKH0qWUjCqgWkhsxrTnLIM1/n49Zi7WE/FwRkSnTRy GH7g== MIME-Version: 1.0 Received: by 10.68.203.7 with SMTP id km7mr16173106pbc.7.1343413522629; Fri, 27 Jul 2012 11:25:22 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Fri, 27 Jul 2012 11:25:22 -0700 (PDT) In-Reply-To: <20120727125134.GA58187@onelab2.iet.unipi.it> References: <20120727093824.GB56662@onelab2.iet.unipi.it> <9654.1343388048@critter.freebsd.dk> <20120727125134.GA58187@onelab2.iet.unipi.it> Date: Fri, 27 Jul 2012 11:25:22 -0700 X-Google-Sender-Auth: RfD5Q4gePSePD6YUy17zAnDp87A Message-ID: From: Adrian Chadd To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Cc: Poul-Henning Kamp , current@freebsd.org Subject: Re: (void)foo or __unused foo ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2012 18:25:23 -0000 I'd rather see a compiler-interpretable "way" of doing this. You could always just use your own for now, until something comes along (like how many #define N(a) there are in the tree, until nitems showed up.) Ie: #define A_UNUSED_T void (A_UNUSED_T) foo; That way (a) it's easy to change with a compile macro change, (b) if it ever clashes, it should be easy enough to rename without having to risk renaming fields you didn't want to, and (c) it's compiler-interpretable. I wonder if bde has any ideas on where a BSD "unused" hint could be stuffed.. Adrian