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) {