This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: "incompatible pointer type" while compiling Python3.5.1
Type: behavior Stage: resolved
Components: Build Versions: Python 3.5
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Use Py_uintptr_t instead of void* for atomic pointers
View: 26161
Assigned To: Nosy List: Devyn Johnson, vstinner
Priority: normal Keywords:

Created on 2016-02-22 15:15 by Devyn Johnson, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg260685 - (view) Author: Devyn Johnson (Devyn Johnson) Date: 2016-02-22 15:15
When compiling Python3.5.1 on Ubuntu 15.10 (64-bit), I see three "incompatible pointer type" warnings (copy-pasted below). I understand that they can be ignored. However, from my experience with programming (in C STD-2011), "weird bugs" and other odd behavior disappears when warnings like this are fixed.

Environment flags (such as CFLAGS) and the configure settings do not appear to influence that warning (i.e. my settings are irrelevant to this bug report).

I hope that this bug report is found to be helpful. Also, thank you Python-developers for making and maintaining Python as open-source software.

Python/ceval_gil.h: In function drop_gil:
Python/ceval_gil.h:181:9: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
         _Py_atomic_store_relaxed(&gil_last_holder, tstate);
         ^
Python/ceval_gil.h: In function take_gil:
Python/ceval_gil.h:243:9: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
         _Py_atomic_store_relaxed(&gil_last_holder, tstate);
         ^
Python/pystate.c: In function PyThreadState_Swap:
Python/pystate.c:509:5: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     _Py_atomic_store_relaxed(&_PyThreadState_Current, newts);
msg260687 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-02-22 16:14
This issue is a duplicate of the issue #26161, waybe we can backport the changeset ff68ffcc6244 to the Python 3.5 branch.
History
Date User Action Args
2022-04-11 14:58:27adminsetgithub: 70598
2019-01-15 01:21:57cheryl.sabellasetstatus: open -> closed
superseder: Use Py_uintptr_t instead of void* for atomic pointers
2019-01-15 01:21:35cheryl.sabellasetresolution: duplicate
stage: resolved
2016-02-22 16:14:47vstinnersetnosy: + vstinner
messages: + msg260687
2016-02-22 15:15:16Devyn Johnsoncreate