Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GCC warnings on pycore_semaphore.h and Python/parking_lot.c #110014

Closed
Assignees
colesbury
@vstinner

Description

@vstinner

Building the Python main branch on RHEL8 withgcc -Og -flto (GCC 8.5.0 on ppc64le) emits the following compiler warnings:

./Include/internal/pycore_semaphore.h:54:1: warning: type of ‘_PySemaphore_Wakeup’ does not match original declaration [-Wlto-type-mismatch] _PySemaphore_Wakeup(_PySemaphore *sema); ^Python/parking_lot.c:197:1: note: ‘_PySemaphore_Wakeup’ was previously declared here _PySemaphore_Wakeup(_PySemaphore *sema) ^Python/parking_lot.c:197:1: note: code may be misoptimized unless -fno-strict-aliasing is used./Include/internal/pycore_semaphore.h:57:18: warning: type of ‘_PySemaphore_Init’ does not match original declaration [-Wlto-type-mismatch] PyAPI_FUNC(void) _PySemaphore_Init(_PySemaphore *sema);                  ^Python/parking_lot.c:53:1: note: ‘_PySemaphore_Init’ was previously declared here _PySemaphore_Init(_PySemaphore *sema) ^Python/parking_lot.c:53:1: note: code may be misoptimized unless -fno-strict-aliasing is used./Include/internal/pycore_semaphore.h:49:1: warning: type of ‘_PySemaphore_Wait’ does not match original declaration [-Wlto-type-mismatch] _PySemaphore_Wait(_PySemaphore *sema, _PyTime_t timeout_ns, int detach); ^Python/parking_lot.c:178:1: note: ‘_PySemaphore_Wait’ was previously declared here _PySemaphore_Wait(_PySemaphore *sema, _PyTime_t timeout, int detach) ^Python/parking_lot.c:178:1: note: code may be misoptimized unless -fno-strict-aliasing is used./Include/internal/pycore_semaphore.h:58:18: warning: type of ‘_PySemaphore_Destroy’ does not match original declaration [-Wlto-type-mismatch] PyAPI_FUNC(void) _PySemaphore_Destroy(_PySemaphore *sema);                  ^Python/parking_lot.c:81:1: note: ‘_PySemaphore_Destroy’ was previously declared here _PySemaphore_Destroy(_PySemaphore *sema) ^Python/parking_lot.c:81:1: note: code may be misoptimized unless -fno-strict-aliasing is used./python -E -S -m sysconfig --generate-posix-vars ;\if test $? -ne 0 ; then \echo "generate-posix-vars failed" ; \rm -f ./pybuilddir.txt ; \exit 1 ; \fi

cc@colesbury@ericsnowcurrently

Linked PRs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp