-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang1] Fix compilation warnings; NFCI
Fix the Flang code base so that WITH_WERROR=on can be used at CMake time to enable stricter linting. This patch mainly addresses the following types of warnings: - -Wcast-qual warnings as a result of mixing (char *) fields and parameters with (const char *) values, especially string literals. Most of these can be trivially fixed by changing the type of the fields/parameters in question to (const char *). Tricky cases are handled with explicit casts (e.g. of string literals to (char *)). - -Wunused-variable and -Wsometimes-uninitialized warnings. Unused variables are deleted, and ones that are used conditionally are initialized with sensible defaults. - -Wmissing-field-initializers warnings for partial initializers in data structure definitions. - -Wformat warnings (e.g. "%d" vs. "%ld", "%p" for non-(void *) arguments).
- Loading branch information
Showing
96 changed files
with
1,572 additions
and
2,426 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.