team-charls / charls

CharLS, a C++ JPEG-LS library implementation
BSD 3-Clause "New" or "Revised" License
188 stars 74 forks source link

Replace CHARLS_CHECK_RETURN with [[nodiscard]] #231

Closed vbaderks closed 1 year ago

vbaderks commented 1 year ago

C++17 always provide the standard [[nodiscard]] attribute Use this attribute when compiling in C++ mode. Code that also can be used in C mode still needs to use CHARLS_CHECK_RETURN. C23 will also provide the attribute [[nodiscard]].

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication