Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Baltoli committed Mar 20, 2023
1 parent b61b241 commit 525bb35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions k-distribution/include/kframework/cparser/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ extern char *filename;
#define PARSER_FUNCTION NAME(K_BISON_PARSER_SORT)

void PARSER_FUNCTION(
char const *program_name, char const *input_file,
char const *location_file) {
char *program_name, char *input_file, char *location_file) {
yyscan_t scanner;
yylex_init(&scanner);

Expand Down Expand Up @@ -173,7 +172,7 @@ int main(int argc, char **argv) {
exit(1);
}

char const *location_file;
char *location_file;
if (argc == 3) {
location_file = argv[2];
} else {
Expand Down

0 comments on commit 525bb35

Please sign in to comment.