gprofng: avoid using `fallthrough' attributes
authorJose E. Marchesi <jose.marchesi@oracle.com>
Tue, 15 Mar 2022 20:04:57 +0000 (21:04 +0100)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Tue, 15 Mar 2022 20:04:57 +0000 (21:04 +0100)
gprofng didn't build with gcc 6.3 due to the usage of __attribute__
((fallthrough)).  This patch uses /* FALLTHROUGH */ instead.

2022-03-15  Jose E. Marchesi  <jose.marchesi@oracle.com>

* gprofng/src/gp-collect-app.cc (collect::check_args): Use
fallthrough comment instead of attribute.

ChangeLog
gprofng/src/gp-collect-app.cc

index 73b6085d6ef7e7b795eabfb1cd2eb8633ea514fa..dfe468c0af49b09ec892a3b757409638be519b6b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-03-15  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * gprofng/src/gp-collect-app.cc (collect::check_args): Use
+       fallthrough comment instead of attribute.
+
 2022-03-11  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
 
        * Makefile.def: Add gprofng module.
index afaae70bc2b72d1606c419fb81310cdba370d830..a40cf8fb9bea5306ab40523f63fb02df33ca1f5a 100644 (file)
@@ -848,7 +848,7 @@ collect::check_args (int argc, char *argv[])
          }
        case 'O':
          overwriteExp = true;
-         __attribute__ ((fallthrough));
+          /* FALLTHROUGH */
        case 'o':
          if (precheck == 1)
            {