This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/43666] Add optional message to the deprecated attribute
- From: "ebassi at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Apr 2010 14:36:35 -0000
- Subject: [Bug c/43666] Add optional message to the deprecated attribute
- References: <bug-43666-19005@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from ebassi at gmail dot com 2010-04-06 14:36 -------
sweet, thanks.
just FYI, I tested it using:
$ cat test-deprecated.c
#include <stdio.h>
int foo (void) __attribute__((deprecated("Use bar() instead")));
int bar (void);
int main (int argc, char *argv[])
{
printf ("foo: %d\n", foo ());
printf ("bar: %d\n", bar ());
return 0;
}
int foo (void) { return 42; }
int bar (void) { return 47; }
$ gcc -Wall -o test-deprecated test-deprecated.c
test-deprecated.c:3: error: wrong number of arguments specified for
?deprecated? attribute
my gcc is:
$ gcc --version
gcc (GCC) 4.4.3 20100127 (Red Hat 4.4.3-4)
thanks again for the quick reply. :-)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43666