-
-
Notifications
You must be signed in to change notification settings - Fork 21
Fix compilation warnings #1119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix compilation warnings #1119
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_argument_item_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1 @@ | ||||||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As mentioned in other files, identifiers starting with a double underscore are reserved. Please use a non-reserved name to avoid potential conflicts and undefined behavior.
Suggested change
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_expression_binary_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_expression_binary_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_expression_call_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_expression_call_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_expression_identifier_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_expression_index_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_expression_index_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_expression_item_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_expression_literal_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_expression_unary_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_expression_unary_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_expressions_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_import_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_import_destroy.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_import_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_kind_decl_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_kind_decl_destroy.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_kind_decl_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_kind_enum_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_kind_enum_destroy.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_kind_enum_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_kind_struct_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_kind_struct_destroy.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_kind_struct_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_kind_union_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_kind_union_destroy.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_kind_union_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_package_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_package_destroy.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_package_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_expression_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_expression_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_for_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_for_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_foreach_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_foreach_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_if_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_if_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_print_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_raw_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_return_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_variable_decl_create.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #include "ast_statement_variable_decl_log.h" | ||
|
|
||
| // Implementation here | ||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,3 +1,4 @@ | ||||||
| #include "generator_llvm.h" | ||||||
|
|
||||||
| // generator_llvm(...) | ||||||
| typedef int __dummy_type; // Placeholder to avoid empty translation unit error | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This identifier
Suggested change
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,5 +2,6 @@ | |
|
|
||
| void validator_validate_value(value_t* value) | ||
| { | ||
| (void)value; // Suppress unused parameter warning | ||
| DEBUG_ME; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this fixes the empty translation unit warning, using identifiers that begin with a double underscore like
__dummy_typeis not recommended. Such names are reserved for the C implementation (compiler and standard library). Using them can lead to undefined behavior if they conflict with an implementation-defined name. A safer alternative would be to use a name that doesn't fall into the reserved namespace. This comment applies to all other files where__dummy_typehas been introduced.