GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Compiling generated code with -Wall will result in unused variables warnings (and possibly other warnings). These originate both from e.g. iterators that may or may not be used and from unused function arguments.
Issue #1741 Prettier codegen
Issue #1741 Prettier codegen (2)
Issue #1741 Refactored casadi_math::print*
Issue #1741 Refactored casadi_math::print
Issue #1741 Removed CodeGenerator::assign
Issue #1741 Abstracted CodeGenerator::body -> CodeGenerator::operator<<
Issue #1741 Implemented auto-indentation
Issue #1741 Auto-indentation in codegen
Issue #1741 Fixed indentation in Map codegen
Issue #1741 CodeGenerator keeping track of local variables
Issue #1741 cr, cs, ct only code generated if used
Issue #1741 Brackets in codegen have side effect of indentation
Issue #1741 cii only generated if used
Issue #1741 ii,jj,kk only generated if used
Issue #1741 rr,ss,tt only generated if used
Issue #1741 r,s,t only generated if used
Issue #1741 i,j,k only generated if used
Issue #1741 Avoiding unused variables in Switch codegen
Issue #1741 Avoiding unused arg1, res1 in MXFunction
undefined-variable is now mostly resolved. @ghorn @jgillis, let me know if you still get these warnings from somewhere. Or other warnings from -Wall (but not -Wextra).
You get warnings if you enable -Wmissing-prototypes or -Wunused-parameter. Neither is part of -Wall, though.
Resolved as far as I can tell.
Issue #1741 Enabled -Wall -Werror in unit tests
Issue #1741 Fixed bug in Switch codegen
Issue #1741 Fixed bug in Switch codegen (2)
Issue #1741 Resolved warnings in Einstein codegen
Issue #1741 Suppressed -Wunknown_pragmas for codegen testing
Issue #1741 Resolved -Wunused-but-set-variable warning
Issue #1741 Resolved bug in mem.h