#20151: Fix "const" error in PyErr_BadInternalCall()
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-7.1
      Component:  packages:          |   Resolution:
  standard                           |    Merged in:
       Keywords:                     |    Reviewers:
        Authors:  Jeroen Demeyer     |  Work issues:
Report Upstream:  Reported           |       Commit:
  upstream. No feedback yet.         |  3bd6fbc85b1d320ca4173ec494428f6d4ac83ae8
         Branch:                     |     Stopgaps:
  u/jdemeyer/fix__const__error_in_pyerr_badinternalcall__|
   Dependencies:                     |
-------------------------------------+-------------------------------------
Description changed by jdemeyer:

Old description:

> Add a patch for [http://bugs.python.org/issue26476] which fixes a
> violation of the C++ standard. GCC accepts the code anyway, but gives a
> warning
> {{{
> /home2/jdemeyer/sage-linbox/local/include/python2.7/pyerrors.h:221:74:
> warning: ISO C++ forbids converting a string constant to ‘char*’
> [-Wwrite-strings]
> }}}

New description:

 Add a patch for [http://bugs.python.org/issue26476] which fixes a
 violation of the C++ standard in Cython-generated C++ code.

 GCC accepts the code anyway, but gives a warning
 {{{
 /home2/jdemeyer/sage-linbox/local/include/python2.7/pyerrors.h:221:74:
 warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-
 strings]
 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/20151#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to