[New-bugs-announce] [issue28667] FD_SETSIZE is unsigned on FreeBSD

Serhiy Storchaka report at bugs.python.org
Fri Nov 11 09:03:10 EST 2016


New submission from Serhiy Storchaka:

Seems FreeBSD is the only platforms with unsigned FD_SETSIZE. On NetBSD, Linux, and OpenBSD it is defined as just int. [1]

This causes compiler warnings on FreeBSD. [2]

Modules/selectmodule.c:72: warning: comparison between signed and unsigned
Modules/selectmodule.c:112: warning: comparison between signed and unsigned
Modules/selectmodule.c:123: warning: comparison between signed and unsigned
Modules/ossaudiodev.c:476: warning: comparison between signed and unsigned

Proposed patch silences warnings.

[1] https://lists.freebsd.org/pipermail/freebsd-standards/2012-July/002410.html
[2] http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.x/builds/5310/steps/compile/logs/warnings%20%2817%29

----------
components: FreeBSD
files: FD_SETSIZE.patch
keywords: patch
messages: 280581
nosy: koobs, serhiy.storchaka, skrah
priority: normal
severity: normal
stage: patch review
status: open
title: FD_SETSIZE is unsigned on FreeBSD
type: compile error
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45445/FD_SETSIZE.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28667>
_______________________________________


More information about the New-bugs-announce mailing list