eclipse / upm

UPM is a high level repository that provides software drivers for a wide variety of commonly used sensors and actuators. These software drivers interact with the underlying hardware platform through calls to MRAA APIs.
MIT License
659 stars 411 forks source link

Replaces #637 Remove unused-result message when compiling #642

Closed g-vidal closed 5 years ago

g-vidal commented 6 years ago

When compiling upm for target Raspberry Pi (and probably others), warning messages about unused result are printed in the log. This commit enables to switch on the compiler flag -Wno-unused-result that prevents printing those warnings.

Propanu commented 5 years ago

Hi @g-vidal and sorry for the delay on this. We can't simply expose warning flags as top level options because they would add a lot of noise to the build process. They can however be added to the SWIG compile flags as suggested by @pylbert in #637. If this is still an issue for you, that would be the way to go. Thanks!