You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warnings are future bugs. PRIMA does not tolerate warnings, unless they are emitted due to compiler bugs or we are one thousand percent sure that they are irrelevant.
In our development and test, compilers and linters should be invoked with the most strict diagnostic/debugging options, e.g., -Wall -Wextra -Wpedantic -Werror or something similar. This also applies to other code such as C++ and Python.
Thank you very much.
Zaikun
The text was updated successfully, but these errors were encountered:
zaikunzhang
changed the title
CMake test does not pass with strict diagnostic options for Intel compilers
CMake test fails with strict diagnostic options for Intel compilers
Apr 22, 2024
Hi @zaikunzhang!
The issue is that you have some headers of C functions in prima.c.
They should in a *.h file.
I suppose that they are not in prima.h because you don't want to export them but we can create another header file.
Hi @nbelakovski ,
I tried adding strict diagnostic options for Intel compilers to cmake.yml:
https://github.com/libprima/prima/compare/5366ab6..ea93390
After that, a few warnings are emitted, which are treated as errors, and the CMake test then fails:
https://github.com/libprima/prima/actions/runs/8790876683
Would you have time to have a look?
I would like to reiterate the following.
Warnings are future bugs. PRIMA does not tolerate warnings, unless they are emitted due to compiler bugs or we are one thousand percent sure that they are irrelevant.
In our development and test, compilers and linters should be invoked with the most strict diagnostic/debugging options, e.g.,
-Wall -Wextra -Wpedantic -Werror
or something similar. This also applies to other code such as C++ and Python.Thank you very much.
Zaikun
The text was updated successfully, but these errors were encountered: