aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-18 14:33:53 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-18 14:33:53 +0200
commitc35e4faf918e8076012c881519687b7bbccaf5eb (patch)
treef63631fcc4347c072b4d003b47a9a3efe4d11a14 /src
parentf883a252b108bd9c4fadb1a78daec85440cc7f08 (diff)
Add the nonnull attribute to codegenstmt()
Diffstat (limited to 'src')
-rw-r--r--src/codegen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c
index a5d0f46..4e2a4d3 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -13,7 +13,8 @@
#include "types.h"
static size_t codegenstmt(LLVMBuilderRef, LLVMValueRef *, struct ast,
- struct lexemes, size_t);
+ struct lexemes, size_t)
+ __attribute__((nonnull));
static size_t codegenexpr(LLVMBuilderRef, LLVMValueRef *, struct ast,
struct lexemes, size_t, LLVMValueRef *)
__attribute__((nonnull));