| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
In file included from Python/ceval.c:770:
Python/generated_cases.c.h:3437:48: warning: code will never be executed [-Wunreachable-code]
if (0) { stack_pointer[-(1 + 0)] = res2; }
^~~~
Python/generated_cases.c.h:3437:17: note: silence by adding parentheses to mark code as explicitly dead
if (0) { stack_pointer[-(1 + 0)] = res2; }
^
/* DISABLES CODE */ ( )
Python/generated_cases.c.h:3415:48: warning: code will never be executed [-Wunreachable-code]
if (0) { stack_pointer[-(1 + 0)] = res2; }
^~~~
Python/generated_cases.c.h:3415:17: note: silence by adding parentheses to mark code as explicitly dead
if (0) { stack_pointer[-(1 + 0)] = res2; }
^
/* DISABLES CODE */ ( )
clang -c -fno-strict-overflow -Wsign-compa
Warning logs are reduced, but not sure this is a safe way. |
Sorry, something went wrong.
|
The if (0) and if (1) can easily be simplified too. It's these lines in assign(): stmt = f"{dst.name} = {cast}{src.name};"
if src.cond:
stmt = f"if ({src.cond}) {{ {stmt} }}"
self.emit(stmt) |
Sorry, something went wrong.
|
It works and it will introduce another warning :) Python/generated_cases.c.h:3394:23: warning: unused variable 'res2' [-Wunused-variable]
PyObject *res2 = NULL;
|
Sorry, something went wrong.
|
It looks like it needs a keyword for res2 if (0) case, which unused keyword can not replace. |
Sorry, something went wrong.
I solved the issue by using the same approach which was used for assigning rule :) |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks -- that should do it, merge it!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.