Skip to content

Conversation

@NSProgrammer
Copy link
Contributor

Summary:
-Wswitch-enum was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with default: present. This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable -Wswitch-enum by default in fbobjc

Differential Revision: D85956878

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 3, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15515

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

⏳ No Failures, 70 Pending

As of commit 4c2164c with merge base 73b6918 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 3, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 3, 2025

@NSProgrammer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D85956878.

@NSProgrammer
Copy link
Contributor Author

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot bot added the release notes: none Do not include this in the release notes label Nov 3, 2025
NSProgrammer added a commit to NSProgrammer/executorch that referenced this pull request Nov 3, 2025
Summary:

`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present.  This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`

Differential Revision: D85956878
NSProgrammer added a commit to NSProgrammer/executorch that referenced this pull request Nov 3, 2025
)

Summary:

`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present.  This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`

Differential Revision: D85956878
NSProgrammer added a commit to NSProgrammer/executorch that referenced this pull request Nov 3, 2025
)

Summary:

`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present.  This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`

Differential Revision: D85956878
@pytorch-bot pytorch-bot bot removed the ciflow/trunk label Nov 3, 2025
NSProgrammer added a commit to NSProgrammer/executorch that referenced this pull request Nov 3, 2025
)

Summary:

`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present.  This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`

Differential Revision: D85956878
NSProgrammer added a commit to NSProgrammer/executorch that referenced this pull request Nov 3, 2025
)

Summary:

`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present.  This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`

Reviewed By: shoumikhin

Differential Revision: D85956878
NSProgrammer added a commit to NSProgrammer/executorch that referenced this pull request Nov 3, 2025
)

Summary:

`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present.  This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`

Reviewed By: shoumikhin

Differential Revision: D85956878
NSProgrammer added a commit to NSProgrammer/executorch that referenced this pull request Nov 3, 2025
)

Summary:

`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present.  This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`

Reviewed By: shoumikhin

Differential Revision: D85956878
NSProgrammer added a commit to NSProgrammer/executorch that referenced this pull request Nov 3, 2025
)

Summary:

`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present.  This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`

Reviewed By: shoumikhin

Differential Revision: D85956878
NSProgrammer added a commit to NSProgrammer/executorch that referenced this pull request Nov 3, 2025
)

Summary:

`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present.  This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`

Reviewed By: shoumikhin

Differential Revision: D85956878
NSProgrammer added a commit to NSProgrammer/executorch that referenced this pull request Nov 3, 2025
)

Summary:

`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present.  This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`

Reviewed By: shoumikhin

Differential Revision: D85956878
NSProgrammer added a commit to NSProgrammer/executorch that referenced this pull request Nov 3, 2025
)

Summary:

`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present.  This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`

Reviewed By: shoumikhin

Differential Revision: D85956878
)

Summary:

`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present.  This helps alert developers when they add an enum value of all the switch statements that need updating.

These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`

Reviewed By: shoumikhin

Differential Revision: D85956878
@meta-codesync meta-codesync bot merged commit 40b304f into pytorch:main Nov 4, 2025
140 of 145 checks passed
abhinaykukkadapu pushed a commit to abhinaykukkadapu/executorch that referenced this pull request Nov 6, 2025
Differential Revision: D85956878

Pull Request resolved: pytorch#15515
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants