pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/8d40f16a6021dc7fbba1bdc1bbda27ea1e955777

8faa60c69660fa.css" /> Issue #13338: Handle all enumerations in _Py_ANNOTATE_MEMORY_ORDER · python/cpython@8d40f16 · GitHub
Skip to content

Commit 8d40f16

Browse files
committed
Issue #13338: Handle all enumerations in _Py_ANNOTATE_MEMORY_ORDER
This allows compiling extension modules with -Wswitch-enum on gcc. Initial patch by Floris Bruynooghe.
1 parent b1e58fe commit 8d40f16

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

Include/pyatomic.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ _Py_ANNOTATE_MEMORY_ORDER(const volatile void *address, _Py_memory_order order)
6464
case _Py_memory_order_seq_cst:
6565
_Py_ANNOTATE_HAPPENS_BEFORE(address);
6666
break;
67-
default:
67+
case _Py_memory_order_relaxed:
68+
case _Py_memory_order_acquire:
6869
break;
6970
}
7071
switch(order) {
@@ -73,7 +74,8 @@ _Py_ANNOTATE_MEMORY_ORDER(const volatile void *address, _Py_memory_order order)
7374
case _Py_memory_order_seq_cst:
7475
_Py_ANNOTATE_HAPPENS_AFTER(address);
7576
break;
76-
default:
77+
case _Py_memory_order_relaxed:
78+
case _Py_memory_order_release:
7779
break;
7880
}
7981
}

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Gary S. Brown
124124
Oleg Broytmann
125125
Dave Brueck
126126
Francisco Martín Brugué
127+
Floris Bruynooghe
127128
Stan Bubrouski
128129
Erik de Bueger
129130
Dick Bulterman

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ What's New in Python 3.2.3?
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #13338: Handle all enumerations in _Py_ANNOTATE_MEMORY_ORDER
14+
to allow compiling extension modules with -Wswitch-enum on gcc.
15+
Initial patch by Floris Bruynooghe.
16+
1317
- Issue #13333: The UTF-7 decoder now accepts lone surrogates (the encoder
1418
already accepts them).
1519

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy