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

            Bug ID: 125685
           Summary: cppcheck: 30 * tighten up internal interfaces in
                    libgfortran
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Today's run of cppcheck produced:

gcc $ grep constParameterPointer cppcheck.20260609.out | grep -c /libgfortran
30

gcc $ grep constParameterPointer cppcheck.20260609.out | grep /libgfortran
trunk/libgfortran/caf/shmem/hashmap.c:176:47: style: Parameter 'res' can be
decla
red as pointer to const [constParameterPointer]
trunk/libgfortran/caf/shmem/hashmap.c:184:46: style: Parameter 'res' can be
decla
red as pointer to const [constParameterPointer]
trunk/libgfortran/caf/shmem/hashmap.c:278:60: style: Parameter 'hsr' can be
decla
red as pointer to const [constParameterPointer]
trunk/libgfortran/caf/shmem/supervisor.c:266:21: style: Parameter 'im' can be
dec
lared as pointer to const [constParameterPointer]
trunk/libgfortran/caf/shmem/thread_support.c:161:29: style: Parameter 'm' can
be 
declared as pointer to const [constParameterPointer]
trunk/libgfortran/caf/shmem/thread_support.c:167:33: style: Parameter 'cv' can
be
 declared as pointer to const [constParameterPointer]
trunk/libgfortran/caf/shmem.c:171:53: style: Parameter 'team_number' can be
decla
red as pointer to const [constParameterPointer]
trunk/libgfortran/caf/shmem.c:746:40: style: Parameter 'team_number' can be
decla
red as pointer to const [constParameterPointer]
trunk/libgfortran/caf/shmem.c:1670:62: style: Parameter 'new_index' can be
declar
ed as pointer to const [constParameterPointer]
trunk/libgfortran/caf/single.c:153:26: style: Parameter 'argc' can be declared
as
 pointer to const [constParameterPointer]
trunk/libgfortran/caf/single.c:206:15: style: Parameter 'team_number' can be
decl
ared as pointer to const [constParameterPointer]
trunk/libgfortran/caf/single.c:627:36: style: Parameter 'team_number' can be
decl
ared as pointer to const [constParameterPointer]
trunk/libgfortran/intrinsics/chmod.c:65:35: style: Parameter 'mode' can be
declar
ed as pointer to const [constParameterPointer]
trunk/libgfortran/io/fbuf.c:76:23: style: Parameter 'u' can be declared as
pointe
r to const [constParameterPointer]
trunk/libgfortran/io/fbuf.c:61:23: style: Parameter 'u' can be declared as
pointe
r to const [constParameterPointer]
trunk/libgfortran/io/open.c:209:62: style: Parameter 'flags' can be declared as
p
ointer to const [constParameterPointer]
trunk/libgfortran/io/read.c:716:29: style: Parameter 'dtp' can be declared as
poi
nter to const [constParameterPointer]
trunk/libgfortran/io/list_read.c:2994:37: style: Parameter 'dtp' can be
declared 
as pointer to const [constParameterPointer]
trunk/libgfortran/io/unix.c:1535:32: style: Parameter 'opp' can be declared as
po
inter to const [constParameterPointer]
trunk/libgfortran/io/unix.c:1537:17: style: Parameter 'flags' can be declared
as 
pointer to const [constParameterPointer]
trunk/libgfortran/io/unix.c:1498:57: style: Parameter 'flags' can be declared
as 
pointer to const [constParameterPointer]
trunk/libgfortran/io/transfer.c:886:40: style: Parameter 'buf' can be declared
as
 pointer to const [constParameterPointer]
trunk/libgfortran/io/transfer.c:1564:22: style: Parameter 'p' can be declared
as 
pointer to const [constParameterPointer]
trunk/libgfortran/io/transfer.c:4852:58: style: Parameter 'var_name' can be
decla
red as pointer to const [constParameterPointer]
trunk/libgfortran/runtime/error.c:226:21: style: Parameter 'buf' can be
declared 
as pointer to const [constParameterPointer]
trunk/libgfortran/io/write.c:146:54: style: Parameter 'source' can be declared
as
 pointer to const [constParameterPointer]
trunk/libgfortran/io/write.c:1783:49: style: Parameter 'fstr' can be declared
as 
pointer to const [constParameterPointer]
trunk/libgfortran/io/write.c:2596:24: style: Parameter 'base' can be declared
as 
pointer to const [constParameterPointer]
trunk/libgfortran/io/write_float.def:332:34: style: Parameter 'dtp' can be
declar
ed as pointer to const [constParameterPointer]
trunk/libgfortran/io/write_float.def:1315:42: style: Parameter 'dtp' can be
decla
red as pointer to const [constParameterPointer]

Might be worth fixing.

Reply via email to