https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119324

            Bug ID: 119324
           Summary: cppcheck meets /cobol/
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cobol
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I tried out the static analyser cppcheck on
the source code of /cobol/.

The most important things it said were:

1.

gcc/cobol/symbols.cc:246:64: performance: Function parameter 'args' should be
passed by const reference. [passedByValue]

2.

gcc/cobol/lexio.cc:854:56: performance: Function parameter 'cm' should be
passed by const reference. [passedByValue] 

3.

gcc/cobol/symfind.cc:503:55: performance: Function parameter 'names' should be
passed by const reference. [passedByValue]

4.

gcc/cobol/genapi.cc:1777:78: style: Clarify calculation precedence for '&' and
'?'. [clarifyCalculation]

5.

gcc/cobol/genapi.cc:1778:78: style: Clarify calculation precedence for '&' and
'?'. [clarifyCalculation]

6.

gcc/cobol/genapi.cc:15638:25: warning: Identical inner 'if' condition is always
true. [identicalInnerCondition]

7.

gcc/cobol/genapi.cc:16702:11: warning: Identical inner 'if' condition is always
true. [identicalInnerCondition]

Reply via email to