From owner-svn-src-all@freebsd.org Wed Aug 24 20:01:01 2016 Return-Path: Delivered-To: svn-src-all@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 E7B09BC5808 for ; Wed, 24 Aug 2016 20:01:01 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yb0-x236.google.com (mail-yb0-x236.google.com [IPv6:2607:f8b0:4002:c09::236]) (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 A409117CE for ; Wed, 24 Aug 2016 20:01:01 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-yb0-x236.google.com with SMTP id d10so9458624ybi.1 for ; Wed, 24 Aug 2016 13:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuxi-nl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=q9OiR6jYW8emZQT5iPUeG5zAdu6OOPWq8AsbGmAFSwM=; b=aLdb1gb4jwnqOcqLR9bC69jxkqaz0GGrdrrw0958LmDWL6tZw57Zv0eAfMhZ2qLlQf Vlw8lxJAEAnZZmg7yw8q5pxW0NxabSfBHSZW6dLVpX1hV/zV0s06tSB0RSIG68D0MnoY xVX0psSNV8SpXG96TFArMCrxjUzJ9GDw+FDzq7n8EzbQSrcglxFsiSH4QfF69E+8WZjf njuT65HokPSkQOGBmCjR3WWdRhQSduXuVE+ht6sS6SjOp2LLFkDltfQ1h3UbZSXNZhxA 0oVMMM21QHj/K0smHI2MZnPNDoVXa7P01MF7OKmPUqx5nYGEd5270/s65yjmPVcEyOmX G/iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=q9OiR6jYW8emZQT5iPUeG5zAdu6OOPWq8AsbGmAFSwM=; b=guM4H7/ffYHG5FrBL4JubsySjR4aKXXOZomJ0uixzAEFnfiez7DkDQ9nGl3hdEH9ac +yUVvDaICCQrrOgtNhw0HlXqzSQ2yjOhlOW1LZi3NwFQ8h/rWHtsbQsnKmZlwEi4pdx0 fK2yJ454kv0/3k7eiHRIorcUu/nzsW3TqQ1K24K2b4buvpV+xcXhUnePZw1+eLmqbj3Y zxfizNNTfrPtz7MbTgNg7x5sUjVYxmub0tWavkw8M3ik4lRnXZI3nxXuP7//xb/dIDgN GZe91QaQsh/y6NsfQPdi2kCeLAc7uTEMmudb2P3Z6I5BTaBugbLCHntSz9Hx15rlzBV4 1E2Q== X-Gm-Message-State: AEkoouviJt6u30CYcW+8bqHNhwFwLwhTRIRZbc3woUk7ZiisLFAgSA9RKU25+MnH8FLh17mUEpdIFVk83htYIQ== X-Received: by 10.37.201.131 with SMTP id z125mr3657422ybf.183.1472068860929; Wed, 24 Aug 2016 13:01:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.13.201.71 with HTTP; Wed, 24 Aug 2016 13:01:00 -0700 (PDT) In-Reply-To: References: <201608120703.u7C73whf007189@repo.freebsd.org> <9ae1c2eb-02ad-b8fe-6aff-7e17e955607a@FreeBSD.org> <2632f5f8-d765-3df7-74d7-da878eb4b7a8@FreeBSD.org> From: Ed Schouten Date: Wed, 24 Aug 2016 22:01:00 +0200 Message-ID: Subject: Re: svn commit: r303988 - head/lib/libc/gen To: Bryan Drewery Cc: svn-src-head@freebsd.org, jilles@freebsd.org, svn-src-all@freebsd.org, src-committers , Ed Schouten Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2016 20:01:02 -0000 2016-08-24 21:53 GMT+02:00 Bryan Drewery : > Is it possible to cause the use of these old prototypes to print a > warning and note that they are deprecated/unsafe? That's a good question. In theory, we could annotate these functions with __attribute__((__deprecated__)): https://gcc.gnu.org/onlinedocs/gcc-3.3.4/gcc/Type-Attributes.html But I'm actually too afraid to use it. In the worst case it may cause the compiler to generate a warning even when basename()/dirname() is used correctly, as __old_* will still be part of the compiled expression. -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717