Stop uflacs from generating unused variables
A few cases such as the points array can be generated but not used. This stops us from compiling dolfin demos together with uflacs generated code with strict flags.
Ping @garth-wells .
Comments (11)
-
-
- changed status to duplicate
Duplicate of
#116. -
reporter I disagree on setting this as a duplicate. This is on code generation, the other is on test system reporting.
-
Feel free to un-link the issues.
-
reporter - changed status to open
-
-
reporter I've tried to inject
#pragma gcc diagnostic
lines to disable it locally but gcc has long standing bugs on this feature. So that didn't work out.An alternative temporary fix would be to set something like
-Wno-unused-variable
in dolfin... It's really not unreasonable that code generation results in a few unused variables. The C++ compiler will remove them anyway...But I will take a look.
-
reporter - changed component to uflacs-repr
-
assigned issue to
- marked as blocker
-
reporter I have a fix for the points, know where to fix element element tables.
-
reporter - changed status to resolved
-
Good job
- Log in to comment
See
#116.