svn commit: r303988 - head/lib/libc/gen
Ed Schouten
ed at nuxi.nl
Wed Aug 24 20:01:02 UTC 2016
2016-08-24 21:53 GMT+02:00 Bryan Drewery <bdrewery at freebsd.org>:
> 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 <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717
More information about the svn-src-head
mailing list