-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
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? Sign in to your account
Teuchos: TEUCHOS_FUNC_TIME_MONITOR_DIFF with -Werror=shadow #12358
Comments
@kliegeois, can you please copy and paste the entire build error output so that we can see the full error context? One way to do this is to just run:
and then the build error will show up on CDash (the STDOUT will give you the exact URL to the build on CDash at the very end of running that command). |
@bartlettroscoe thanks for your comment! Please find attached the asked file: |
@kliegeois, sorry to only to be getting to this now (going back through my email backlog) ... Is this still an issue? It looks like the PR: has not been merged yet. I see the problem is that there are two calls to
and
That is causing a shadowing warning. One suggestion to get around this, why not just break off that code that calls the timer That function is very long starting at:
and going all the way down to: with lots of detail.
I don't think you can use The C/C++ preprocessor language is pretty limited in the type of string manipulation you can do at pre-processing time. For example, see: |
Bug Report
@bartlettroscoe
@trilinos/teuchos
Description
When building the branch of #12344 with:
and the C++ flag:
TEUCHOS_FUNC_TIME_MONITOR_DIFF
does not compile because of the nesting ofTEUCHOS_FUNC_TIME_MONITOR
. Because, the lines https://github.com/trilinos/Trilinos/blob/master/packages/teuchos/comm/src/Teuchos_TimeMonitor.hpp#L91-L98 throw the following error:@bartlettroscoe could we use
FUNCNAME
inDIFF ## blabla_localTimer
(I am not a macro expert)?The text was updated successfully, but these errors were encountered: