FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-106797: Remove warning logs from Python/generated_cases.c.h and executor_cases.c.h by corona10 · Pull Request #107889 · python/cpython · GitHub

/ cpython Public

gh-106797: Remove warning logs from Python/generated_cases.c.h and executor_cases.c.h - #107889

Merged
corona10 merged 1 commit into
python:mainfrom
corona10:gh-106280-stack-index
Aug 12, 2023
Merged

gh-106797: Remove warning logs from Python/generated_cases.c.h and executor_cases.c.h#107889
corona10 merged 1 commit into
python:mainfrom
corona10:gh-106280-stack-index

Conversation

corona10 commented Aug 12, 2023
edited
Loading

Copy link
Copy Markdown
Member

It was detected during the PyCon KR sprint from the mentee's compiler.

corona10 commented Aug 12, 2023
edited
Loading

Copy link
Copy Markdown
Member Author

Compiler warn logs from PGO build

Python/generated_cases.c.h:3597:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
Python/generated_cases.c.h:3597:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
Python/generated_cases.c.h:3577:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
Python/generated_cases.c.h:3577:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
Python/generated_cases.c.h:2254:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
Python/generated_cases.c.h:2254:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
In file included from Python/executor.c:84:
Python/executor_cases.c.h:1516:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
Python/executor_cases.c.h:1516:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )

gvanrossum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks!

corona10 merged commit bf70774 into python:main Aug 12, 2023
corona10 deleted the gh-106280-stack-index branch August 12, 2023 19:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL