classification
Title: arg 2 of PyErr_SetFromErrnoWithFilename should be const
Type: behavior
Components: Interpreter Core Versions: Python 2.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: loewis Nosy List: loewis, ukleinek
Priority: Keywords:

Created on 2008-05-04 17:42 by ukleinek, last changed 2008-05-12 17:05 by georg.brandl.

Files
File name Uploaded Description Edit Remove
make_PyErr_SetFromErrnoWithFilename_filename_const ukleinek, 2008-05-04 17:42 patch
Messages
msg66220 (view) Author: Uwe Kleine-König (ukleinek) Date: 2008-05-04 17:42
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.
History
Date User Action Args
2008-05-12 17:05:04georg.brandlsetassignee: loewis
nosy: + loewis
2008-05-04 17:42:06ukleinekcreate