diff --git a/README.md b/README.md index 308b902d9..4b44809a4 100644 --- a/README.md +++ b/README.md @@ -379,8 +379,7 @@ The c3c binary should be created in the build directory. You can try it out by r ```bash cmake -B build \ -D C3_LINK_DYNAMIC=ON \ - -D CMAKE_BUILD_TYPE=Release \ - -D CMAKE_C_FLAGS_RELEASE="-Wno-error=maybe-uninitialized" + -D CMAKE_BUILD_TYPE=Release ``` 5. Build the project: `make -C build`. diff --git a/src/compiler/llvm_codegen_expr.c b/src/compiler/llvm_codegen_expr.c index 4acb81ce8..28cb8ded0 100644 --- a/src/compiler/llvm_codegen_expr.c +++ b/src/compiler/llvm_codegen_expr.c @@ -2051,7 +2051,7 @@ static inline LLVMValueRef llvm_emit_inc_dec_value(GenContext *c, SourceSpan spa Type *element = type_lowering(type->array.base); LLVMValueRef diff_value; bool is_integer = type_kind_is_any_integer(element->type_kind); - bool is_ptr; + bool is_ptr = false; if (is_integer) { diff_value = LLVMConstInt(llvm_get_type(c, element), 1, false);