From 3e5fefdb6452d2a6b045cbcdcf9a18ca7a7b04d0 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Thu, 9 Jul 2020 16:10:02 +0200 Subject: [PATCH] Fixed warning. --- src/compiler/compiler_internal.h | 2 +- src/main.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compiler/compiler_internal.h b/src/compiler/compiler_internal.h index 1b7e6ef92..1f3880e29 100644 --- a/src/compiler/compiler_internal.h +++ b/src/compiler/compiler_internal.h @@ -1176,7 +1176,7 @@ static inline bool decl_poison(Decl *decl) { decl->decl_kind = DECL_POISONED; de static inline bool decl_is_struct_type(Decl *decl) { DeclKind kind = decl->decl_kind; - return kind == DECL_UNION | kind == DECL_STRUCT | kind == DECL_ERR; + return (kind == DECL_UNION) | (kind == DECL_STRUCT) | (kind == DECL_ERR); } static inline DeclKind decl_from_token(TokenType type) { diff --git a/src/main.c b/src/main.c index 4923ddb5b..6dcb63cff 100644 --- a/src/main.c +++ b/src/main.c @@ -5,11 +5,15 @@ #include "compiler_tests/tests.h" #include "utils/lib.h" +static int version = 100; + int main(int argc, const char *argv[]) { // First setup memory memory_init(); + DEBUG_LOG("Version: %d", version); + // Init the compiler compiler_init();