[New-bugs-announce] [issue2758] arg 2 of PyErr_SetFromErrnoWithFilename should be const

Uwe Kleine-König report at bugs.python.org
Sun May 4 19:42:09 CEST 2008

New submission from Uwe Kleine-König <ukleinek at informatik.uni-freiburg.de>:

Compiling an extension I get the warning:

	warning: passing argument 2 of ‘PyErr_SetFromErrnoWithFilename’
discards qualifiers from pointer target type

I passed a const char *, which should be OK from looking at the
implementation of PyErr_SetFromErrnoWithFilename.

Attached is a patch.  I don't expect this to break any API or ABI, but
you might know better.

components: Interpreter Core
files: make_PyErr_SetFromErrnoWithFilename_filename_const
messages: 66220
nosy: ukleinek
severity: normal
status: open
title: arg 2 of PyErr_SetFromErrnoWithFilename should be const
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file10194/make_PyErr_SetFromErrnoWithFilename_filename_const

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list