From 46bbb3edacf5a86d3f84de52593119396b448b69 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Tue, 21 Jan 2014 14:16:57 +0400 Subject: 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. --- gdb/common/common-utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/common') diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h index 5960c55..063698d 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 -- cgit v1.1