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
This commit fixes the following build-time error:
```
cl/gcc/clplug.c: In function 'bool error_detected()':
cl/gcc/clplug.c:480:52: error: invalid types '<unresolved overloaded function type>[diagnostic_t]' for array subscript
  480 |     return global_dc && global_dc->diagnostic_count[DK_ERROR];
      |                                                    ^
```

Related: #92
Resolves: #93
  • Loading branch information
kdudka committed Mar 1, 2024
1 parent 2a78ddc commit 26e57d4
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 26e57d4

Please sign in to comment.