This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 2/2] Add ARI (ok) marker for __func__ reference in common-utils.h
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 21 Jan 2014 14:36:15 +0400
- Subject: [PATCH 2/2] Add ARI (ok) marker for __func__ reference in common-utils.h
- Authentication-results: sourceware.org; auth=none
- References: <20140118015244 dot GA22787 at sourceware dot org> <1390300575-6998-1-git-send-email-brobecker at adacore dot com>
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