Skip to content

Commit

Permalink
cl/gcc: fix compatibility with host gcc-14.x
Browse files Browse the repository at this point in the history
Related: #92
Resolves: #93
  • Loading branch information
kdudka committed Mar 1, 2024
1 parent 1175022 commit 9127dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cl/gcc/clplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ static void var_db_insert(var_db_t db, struct cl_var *var)

static bool error_detected(void)
{
return global_dc && global_dc->diagnostic_count[DK_ERROR];
return global_dc && errorcount;
}

static void read_gcc_location(struct cl_loc *loc, location_t gcc_loc)
Expand Down

0 comments on commit 9127dae

Please sign in to comment.