From: Joel Brobecker Date: Tue, 21 Jan 2014 10:16:57 +0000 (+0400) Subject: Add ARI (ok) marker for __func__ reference in common-utils.h X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=46bbb3edacf5a86d3f84de52593119396b448b69;p=deliverable%2Fbinutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2ccf1cb8de..caed7241dc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-01-22 Joel Brobecker + + * common/common-utils.h: Add "ARI:" comment beside __func__ + reference. + 2014-01-22 Joel Brobecker * common/common-utils.h (FUNCTION_NAME): Expand the macro's diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h index 5960c55216..063698dac7 100644 --- a/gdb/common/common-utils.h +++ b/gdb/common/common-utils.h @@ -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