Add ARI (ok) marker for __func__ reference in common-utils.h

The ARI script flagged the use of the __func__ variable, which
is normally not allowed (not defined in C90). However, this particular
use is OK, as the reference is only made when __STDC_VERSION__ >=
199901L.  So, add an "ARI:" comment to explicitly OK this use.

gdb/ChangeLog:

        * common/common-utils.h: Add "ARI:" comment beside __func__
        reference.
This commit is contained in:
Joel Brobecker 2014-01-21 14:16:57 +04:00
parent 3a80edfc74
commit 46bbb3edac
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-01-22 Joel Brobecker <brobecker@adacore.com>
* common/common-utils.h: Add "ARI:" comment beside __func__
reference.
2014-01-22 Joel Brobecker <brobecker@adacore.com>
* common/common-utils.h (FUNCTION_NAME): Expand the macro's

View File

@ -39,7 +39,7 @@
#define FUNCTION_NAME __PRETTY_FUNCTION__
#else
#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
#define FUNCTION_NAME __func__
#define FUNCTION_NAME __func__ /* ARI: func */
#endif
#endif