Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cython vtable warnings in padics #24609

Open
jdemeyer opened this issue Jan 29, 2018 · 12 comments
Open

Cython vtable warnings in padics #24609

jdemeyer opened this issue Jan 29, 2018 · 12 comments

Comments

@jdemeyer
Copy link

warning: sage/rings/padics/CR_template.pxi:779:10: Compatible but non-identical C method '_floordiv_' not redeclared in definition part of extension type 'CRElement'.  This may cause incorrect vtables to be generated.
warning: sage/rings/padics/CR_template.pxi:1396:10: Compatible but non-identical C method 'val_unit' not redeclared in definition part of extension type 'CRElement'.  This may cause incorrect vtables to be generated.
warning: sage/rings/padics/FP_template.pxi:1096:10: Compatible but non-identical C method 'val_unit' not redeclared in definition part of extension type 'FPElement'.  This may cause incorrect vtables to be generated.
warning: sage/rings/padics/CR_template.pxi:779:10: Compatible but non-identical C method '_floordiv_' not redeclared in definition part of extension type 'CRElement'.  This may cause incorrect vtables to be generated.
warning: sage/rings/padics/CR_template.pxi:1396:10: Compatible but non-identical C method 'val_unit' not redeclared in definition part of extension type 'CRElement'.  This may cause incorrect vtables to be generated.
warning: sage/rings/padics/FP_template.pxi:1096:10: Compatible but non-identical C method 'val_unit' not redeclared in definition part of extension type 'FPElement'.  This may cause incorrect vtables to be generated.
warning: sage/rings/padics/padic_generic_element.pyx:279:10: Compatible but non-identical C method '_floordiv_' not redeclared in definition part of extension type 'pAdicGenericElement'.  This may cause incorrect vtables to be generated.
warning: sage/rings/padics/padic_generic_element.pyx:390:10: Compatible but non-identical C method '_mod_' not redeclared in definition part of extension type 'pAdicGenericElement'.  This may cause incorrect vtables to be generated.

This is part of #23600.

CC: @roed314

Component: padics

Keywords: padicIMA

Work Issues: rename right to other; add p parameter to val_unit everywhere

Author: Julian Rüth

Branch/Commit: u/saraedum/24609 @ a0bac48

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

@jdemeyer jdemeyer added this to the sage-8.2 milestone Jan 29, 2018
@jdemeyer

This comment has been minimized.

@roed314
Copy link
Contributor

roed314 commented Jul 22, 2018

Changed keywords from none to padicIMA

@saraedum
Copy link
Member

Author: Julian Rüth

@saraedum
Copy link
Member

Branch: u/saraedum/24609

@saraedum
Copy link
Member

Work Issues: is the patchbot happy?

@saraedum
Copy link
Member

Commit: a0bac48

@saraedum
Copy link
Member

New commits:

a0bac48Fixes Cython warnings

@saraedum
Copy link
Member

comment:6

I have not tested this, but the warnings are gone.

@jdemeyer
Copy link
Author

comment:7

Minor nitpick, but could you use self, other instead of self, right?

@saraedum
Copy link
Member

comment:8

The implementation uses right. So I should change all the implementations as well I guess?

@jdemeyer
Copy link
Author

comment:9

I don't care so much. Whatever you feel like.

@saraedum
Copy link
Member

Changed work issues from is the patchbot happy? to rename right to other; add p parameter to val_unit everywhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants