This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2/2] Add ARI (ok) marker for __func__ reference in common-utils.h


Hello,

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 besides __func__
        reference.

OK to commit?

Thanks,
-- 
Joel

---
 gdb/common/common-utils.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 
-- 
1.8.3.2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]