Skip to content

Python/generated_cases.c.h emits compiler warnings#106797

@corona10

Description

@corona10
 In file included from Python/ceval.c:770: Python/generated_cases.c.h:3463:51: warning: code will never be executed [-Wunreachable-code] if (1){stack_pointer[-(1 + (1 ? 1 : 0))] = res2} ^ Python/generated_cases.c.h:3463:43: note: silence by adding parentheses to mark code as explicitly dead if (1){stack_pointer[-(1 + (1 ? 1 : 0))] = res2} ^ /* DISABLES CODE */ ( ) Python/generated_cases.c.h:3437:58: warning: code will never be executed [-Wunreachable-code] if (0){stack_pointer[-(1 + (0 ? 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 ? 1 : 0))] = res2} ^ /* DISABLES CODE */ ( ) Python/generated_cases.c.h:3437:47: warning: code will never be executed [-Wunreachable-code] if (0){stack_pointer[-(1 + (0 ? 1 : 0))] = res2} ^ Python/generated_cases.c.h:3437:43: note: silence by adding parentheses to mark code as explicitly dead if (0){stack_pointer[-(1 + (0 ? 1 : 0))] = res2} ^ /* DISABLES CODE */ ( ) Python/generated_cases.c.h:3415:58: warning: code will never be executed [-Wunreachable-code] if (0){stack_pointer[-(1 + (0 ? 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 ? 1 : 0))] = res2} ^ /* DISABLES CODE */ ( ) Python/generated_cases.c.h:3415:47: warning: code will never be executed [-Wunreachable-code] if (0){stack_pointer[-(1 + (0 ? 1 : 0))] = res2} ^ Python/generated_cases.c.h:3415:43: note: silence by adding parentheses to mark code as explicitly dead if (0){stack_pointer[-(1 + (0 ? 1 : 0))] = res2} ^ /* DISABLES CODE */ ( ) Python/generated_cases.c.h:3387:51: warning: code will never be executed [-Wunreachable-code] if (1){stack_pointer[-(1 + (1 ? 1 : 0))] = res2} ^ Python/generated_cases.c.h:3387:43: note: silence by adding parentheses to mark code as explicitly dead if (1){stack_pointer[-(1 + (1 ? 1 : 0))] = res2} ^ /* DISABLES CODE */ ( ) Python/generated_cases.c.h:3365:51: warning: code will never be executed [-Wunreachable-code] if (1){stack_pointer[-(1 + (1 ? 1 : 0))] = res2} ^ Python/generated_cases.c.h:3365:43: note: silence by adding parentheses to mark code as explicitly dead if (1){stack_pointer[-(1 + (1 ? 1 : 0))] = res2} ^ /* DISABLES CODE */ ( ) 

Not a significant issue, but good to be fixed.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions