diangamichael commented on issue #1662:
URL: https://github.com/apache/age/issues/1662#issuecomment-2077557759

   The warning you're encountering during the build process of Apache AGE on 
MacOS is related to an unused variable cypher_yynerrs in the generated 
cypher_gram.c file. This warning doesn't necessarily indicate an error, but 
it's informing you that the variable is defined but not used within the code.
   
   To resolve this warning, you can either remove the unused variable or 
suppress the warning altogether.
   
   Here's how you can address it:
   
   Remove the Unused Variable:
   You can edit the cypher_gram.c file and remove the declaration of 
cypher_yynerrs if it's not needed for any future use. However, be cautious when 
modifying generated code as it might affect the functionality of the parser.
   Suppress the Warning:
   If you prefer not to modify the generated code, you can suppress the warning 
using compiler directives. For example, if you're using GCC or Clang, you can 
use the -Wno-unused-but-set-variable flag to suppress this specific warning. 
Add this flag to your CFLAGS when configuring or compiling AGE.
   
   
   ./configure CFLAGS="-Og -Wno-unused-but-set-variable" --enable-tap-tests 
--enable-debug --enable-cassert --prefix=/tmp/pgsql
   
   Adding this flag instructs the compiler to ignore warnings about unused but 
set variables, which includes cypher_yynerrs in this case.
   By removing the warning or suppressing it, you should be able to build 
Apache AGE without encountering this specific issue. However, always ensure 
that the changes made do not introduce unintended consequences to the 
functionality or stability of the codebase.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to