mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix compile with gcc 14.2.1 (#1594)
* Fix compile with gcc 14.2.1 Fixes -Werror=maybe-uninitialized warnings * Updated to use INVALID_PTR rather than NULL. --------- Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
This commit is contained in:
@@ -2967,7 +2967,7 @@ static void llvm_emit_slice_values(GenContext *c, Expr *slice, BEValue *parent_r
|
||||
|
||||
// Emit the start and end
|
||||
|
||||
Type *start_type;
|
||||
Type *start_type = (Type*)INVALID_PTR;
|
||||
Range range = slice->slice_expr.range;
|
||||
BEValue start_index;
|
||||
switch (range.range_type)
|
||||
|
||||
Reference in New Issue
Block a user