Add ARI (ok) marker for __func__ reference in common-utils.h
authorJoel Brobecker <brobecker@adacore.com>
Tue, 21 Jan 2014 10:16:57 +0000 (14:16 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Wed, 22 Jan 2014 05:03:31 +0000 (09:03 +0400)
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/ChangeLog
gdb/common/common-utils.h

index 2ccf1cb8debc17bf63be6807c532339bb6a50b92..caed7241dca433c122b1f40cd2f6243b12510de3 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * common/common-utils.h: Add "ARI:" comment beside __func__
+       reference.
+
 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
 
        * common/common-utils.h (FUNCTION_NAME): Expand the macro's
index 5960c5521653f63682d66320f0baba46831b5cff..063698dac78ddb4cb54ee21582e01f2ecc83e3d7 100644 (file)
@@ -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
 
This page took 0.026938 seconds and 4 git commands to generate.