From owner-svn-src-head@freebsd.org Wed Aug 24 20:01:01 2016 Return-Path: Delivered-To: svn-src-head@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 E70B6BC5807 for ; Wed, 24 Aug 2016 20:01:01 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yb0-x233.google.com (mail-yb0-x233.google.com [IPv6:2607:f8b0:4002:c09::233]) (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 A3D8B17CC for ; Wed, 24 Aug 2016 20:01:01 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-yb0-x233.google.com with SMTP id a7so8293016ybi.0 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=BHOrw6Q9g9RhxFXMfg6gBk4mWTuph54YeD8cSJwh7cckZAI1tP8WRWFi9CgCz0Vjqq OTJJtWEy6We6JcfUHbGclwr+2rEigVnBzihLr23fEpgA184iWmx/8GoKyr+ng2tdMrFU 2W5nO5E0/a9GndJAEYxJyJ17UNzzNtqz8FlUR4egUAbvGtjX+W16Mms5YH7jIz1Ro4xd rG1ORegVv78BT5IuqZZpdlmhxw99ZjPS7BM4hZWY1HPzmS949LrhdNLPTcJU5aIZ5yRL 8vEvaIeAcnKzwiZyYHikESNbQjOTTZZVrebIVvdI2aq95+v03lh/a0HGl7ZxQdJvKlPg n8pQ== X-Gm-Message-State: AEkooutwgFCVowTj1d+FjRlNtrZLDGE1LrwYD9sUaQN4UMnBQiMnCTWo3GzkoxmPGOoQ4Rk2fD9yZws+ZAVt9Q== 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-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current 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