mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Keep compilers happy
This commit is contained in:
@@ -790,7 +790,7 @@ gb_internal lbValue lb_generate_anonymous_proc_lit(lbModule *m, String const &pr
|
|||||||
static std::atomic<i32> name_id;
|
static std::atomic<i32> name_id;
|
||||||
name_id.fetch_add(1);
|
name_id.fetch_add(1);
|
||||||
|
|
||||||
name_len = gb_snprintf(name_text, name_len, "%.*s$anon-%d", LIT(prefix_name), name_id);
|
name_len = gb_snprintf(name_text, name_len, "%.*s$anon-%d", LIT(prefix_name), name_id.load());
|
||||||
String name = make_string((u8 *)name_text, name_len-1);
|
String name = make_string((u8 *)name_text, name_len-1);
|
||||||
|
|
||||||
Type *type = type_of_expr(expr);
|
Type *type = type_of_expr(expr);
|
||||||
|
|||||||
Reference in New Issue
Block a user