[Click] CLICK_DEPRECATED

Vivek raghunathan vivek.raghunathan at gmail.com
Wed Sep 6 10:28:43 EDT 2006


I mainly use Click on Linux, but keep cross-checking occasionally for
compatibility issues on NetBSD. This might explain why Click recently
stopped building on NetBSD-3.0 with gcc3.3, complaining about
CLICK_DEPRECATED errors.

-Vivek


On 9/6/06, Jens Mueller <jmueller at informatik.hu-berlin.de> wrote:
> Hi,
>
> the macro definition of CLICK_DEPRECATED in config.h.in is wrong
> according to my experiences. The syntax used in
> include/click/bighashmap.hh on line 113 is supported since gcc version
> 3.4. But the macro assumes gcc version 3.1.  Consider the following
> example:
>
> class Foo {
>     void foo() __attribute__((deprecated));
>
>     void bar() __attribute__((deprecated)) { return; }
>
> };
>
> void Foo::foo() { }
>
>
> The definition of method 'foo' is valid since gcc 3.1, whereas the
> definition and implementation of method 'bar' is only allowed since gcc
> 3.4.
> I therefore patched the macro definition. What do you think?
>
> Kind regards,
> Jens
>
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
>
>
>


-- 

---

*************************************
Vivek Raghunathan,
PhD student,
University of Illinois, Urbana-Champaign

Contact Details:
1012 W. Clark St #31,
Urbana IL 61801

ph: 217-766-1868 (cell)
    217-333-7541 (off)


More information about the click mailing list