From 49581e8eaa43c7e52ee8c3990c51d87651c15f34 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Tue, 3 Dec 2019 18:36:21 +0200 Subject: [PATCH] Added forward declaration for yyparse to avoid warnings with some compilers when compiling acc --- acc/src/code_generator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acc/src/code_generator.c b/acc/src/code_generator.c index f721910..d327253 100644 --- a/acc/src/code_generator.c +++ b/acc/src/code_generator.c @@ -43,6 +43,9 @@ static FILE* CUDAHEADER = NULL; static const char* dslheader_filename = "user_defines.h"; static const char* cudaheader_filename = "user_kernels.h"; +// Forward declaration of yyparse +int yyparse(void); + /* * ============================================================================= * Translation