#12 gcc4 __FUNCTION__ macro

closed-accepted
None
5
2005-09-13
2005-08-20
Anonymous
No

A patch for compiling openobex apps using gcc4. The
``__FUNCTION__'' macro is in gcc version4 resolved
without comma so the calls contains this macro cann't
be compiled.

Discussion

  • The patch file

     
    Attachments
    • assigned_to: nobody --> zany
    • status: open --> closed-accepted
     
  • Logged In: YES
    user_id=136432

    ISO standard C99 defines __func__ and __FUNCTION__ is a
    synonym in more recent GCC versions
    By this definition, __func__ is a variable, not a string
    literal. In particular, __func__ does not catenate with
    other string literals.