Skip to content
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

Fix compiler warnings #1346

Closed
2 tasks done
dweindl opened this issue Nov 30, 2020 · 1 comment · Fixed by #1349
Closed
2 tasks done

Fix compiler warnings #1346

dweindl opened this issue Nov 30, 2020 · 1 comment · Fixed by #1349
Assignees
Labels

Comments

@dweindl
Copy link
Member

dweindl commented Nov 30, 2020

Intel compiler complains about:

@dweindl dweindl added the c++ label Nov 30, 2020
@thomassligon
Copy link
Contributor

Interesting, this really does refer to the Intel compiler, and not the Microsoft compiler. The description of the warning is here:
https://software.intel.com/content/www/us/en/develop/articles/cdiag858.html
which says:

Cause:
Compiler generates this warning when it finds a type qualifier applied to the return type of a function. C++ allows the type-qualifier to be const or volatile , but either qualifier applied to a function return type is meaningless, because functions can only return rvalues and the type qualifiers apply only to lvalues.

Resolution:

  1. Remove the type qualifier from the return type of the function.
  2. This diagnostic can be safely ignored.

dweindl added a commit that referenced this issue Dec 1, 2020
'type qualifier on return type is meaningless'

Closes #1346
@dweindl dweindl self-assigned this Dec 1, 2020
@dweindl dweindl linked a pull request Dec 1, 2020 that will close this issue
dweindl added a commit that referenced this issue Dec 1, 2020
'type qualifier on return type is meaningless'

Closes #1346
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants