Skip to content

Fix "referenced before assignment" warnings in matrices #33201

@orlitzky

Description

@orlitzky
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:283:19: local variable 'd' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:285:18: local variable 'd' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:289:11: local variable 'd' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:297:14: local variable 'one' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:298:14: local variable 'zero' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:305:58: local variable 'one' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:306:65: local variable 'zero' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:309:57: local variable 'one' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:310:65: local variable 'zero' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:323:11: local variable 'one' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:324:11: local variable 'zero' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:328:30: local variable 'one' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:329:15: local variable 'zero' referenced before assignment
[sagelib-9.5.rc2] warning: sage/matrix/matrix_modn_dense_template.pxi:283:19: local variable 'd' referenced before assignment

Component: build

Author: Michael Orlitzky

Branch/Commit: 0ee6b70

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/33201

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions