From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 2/2] Add ARI (ok) marker for __func__ reference in common-utils.h
Date: Tue, 21 Jan 2014 10:36:00 -0000 [thread overview]
Message-ID: <1390300575-6998-2-git-send-email-brobecker@adacore.com> (raw)
In-Reply-To: <1390300575-6998-1-git-send-email-brobecker@adacore.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
next prev parent reply other threads:[~2014-01-21 10:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-18 1:52 New ARI warning Sat Jan 18 01:52:44 UTC 2014 GDB Administrator
2014-01-21 10:36 ` [PATCH 1/2] Expand documentation of common-utils.h::FUNCTION_NAME Joel Brobecker
2014-01-21 10:36 ` Joel Brobecker [this message]
2014-01-22 4:44 ` [PATCH 2/2] Add ARI (ok) marker for __func__ reference in common-utils.h Doug Evans
2014-01-22 4:57 ` Joel Brobecker
2014-01-22 5:12 ` pushed: " Joel Brobecker
2014-01-22 4:41 ` [PATCH 1/2] Expand documentation of common-utils.h::FUNCTION_NAME Doug Evans
2014-01-22 4:59 ` Joel Brobecker
2014-01-22 5:20 ` Doug Evans
2014-01-22 5:12 ` pushed: " Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1390300575-6998-2-git-send-email-brobecker@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox