Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mention -Wimplicit-fallthrough in _Py_FALLTHROUGH doc
  • Loading branch information
vstinner committed Jun 26, 2024
commit 32f3cf9ce4e56baf2343b907a347fd888a00f872
8 changes: 5 additions & 3 deletions Include/pyport.h
Original file line number Diff line number Diff line change
Expand Up @@ -607,10 +607,12 @@ extern "C" {
# define _SGI_MP_SOURCE
#endif

// Explicit fallthrough in switch case.
// Example:
// Explicit fallthrough in switch case to avoid warnings
// with compiler flag -Wimplicit-fallthrough.
//
// switch(value)
// Usage example:
//
// switch (value)
// case 1: _Py_FALLTHROUGH;
// case 2: code; break;
// }
Expand Down