From 913c00dd9622b29622029a88b666b0b3f1c98850 Mon Sep 17 00:00:00 2001 From: Siddharth Purohit Date: Wed, 29 Jul 2020 16:50:22 +0530 Subject: [PATCH] AP_Scripting: add default case to fix uninitialised use situation --- libraries/AP_Scripting/generator/src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_Scripting/generator/src/main.c b/libraries/AP_Scripting/generator/src/main.c index 6a709fd455..0b1b1e76f7 100644 --- a/libraries/AP_Scripting/generator/src/main.c +++ b/libraries/AP_Scripting/generator/src/main.c @@ -174,6 +174,7 @@ void trace(const int trace, const char *message, ...) { } } +void error(const int code, const char *message, ...) __attribute__ ((noreturn)); void error(const int code, const char *message, ...) { char * fmt = malloc(strlen(message)+1024); if (fmt == NULL) {