[issue6420] Fix warning in nismodule.c on OpenBSD
Henry Precheur
report at bugs.python.org
Sat Jul 4 23:39:27 CEST 2009
New submission from Henry Precheur <henry at precheur.org>:
On OpenBSD the file /usr/include/rpcsvc/ypclnt.h contains the following
declaration:
struct ypall_callback {
/* return non-0 to stop getting called */
int (*foreach)(unsigned long, char *, int, char *, int, void *);
char *data; /* opaque pointer for use of callback fn */
};
the 'foreach' function pointer's declaration in Modules/nismodule.c is
different:
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -I. -I./Include -I/usr/local/include -IInclude
-I/home/henry/py3k -c /home/henry/py3k/Modules/nismodule.c -o
build/temp.openbsd-4.6-amd64-3.2/home/henry/py3k/Modules/nismodule.o
/home/henry/py3k/Modules/nismodule.c: In function `nis_cat':
/home/henry/py3k/Modules/nismodule.c:208: warning: assignment from
incompatible pointer type
The attached patch fixes this very important issue :)
----------
components: Build, Library (Lib)
files: patch-Modules_nismodule_c
messages: 90128
nosy: henry.precheur
severity: normal
status: open
title: Fix warning in nismodule.c on OpenBSD
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file14450/patch-Modules_nismodule_c
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6420>
_______________________________________
More information about the Python-bugs-list
mailing list