Skip to content

Fix a few cython "referenced before assignment" warnings #33176

@orlitzky

Description

@orlitzky

Our build displays several warnings like

warning: sage/libs/ntl/ntl_ZZ.pyx:274:23: local variable 'ans' referenced before assignment

for variables that are passed by reference to a C function that overwrites them (meaning that there is no real bug). Here we fix a few easy ones by initializing the variable.

Component: build

Author: Michael Orlitzky

Branch/Commit: 93f2e90

Reviewer: Markus Wageringel, Marc Mezzarobba

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions