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

            Bug ID: 102082
           Summary: minor: 2 * pointless assignment to function parameters
                    ?
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

1.

libgomp/loop.c:627:7: style: Assignment of function parameter has no effect
outside the function. [uselessAssignmentArg]

Source code is

     sched = thr->ts.work_share->sched;

But sched is unused in the remainder of the function. Suggest delete dead
assignment.

2.

libgomp/loop_ull.c:633:7: style: Assignment of function parameter has no effect
outside the function. [uselessAssignmentArg]

Duplicate.

Reply via email to