cornelisnetworks / opa-psm2

Other
36 stars 29 forks source link

Warning fixes #50

Closed tstellar closed 4 years ago

mwheinz commented 4 years ago

tstellar,

Could you provide some information about how/when you get these errors? When I compile the current release I get no warnings at all.

tstellar commented 4 years ago

I get these warnings when building with clang instead of gcc.

acgoldma commented 4 years ago

While enum-conversion and unused-function warnings can be enabled in gcc, inline functions do not trigger the warning. Therefore to reproduce both issues I had to modify our make files to not throw an error when using clang to compile. However, I would like to note, clang is not an officially supported compiler for psm2. Officially we only support gcc and icc in our make files. That being said, the changes were minor and should appear in a future release.