zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.89k stars 6.63k forks source link

[Coverity CID :203621]Parse warnings in /opt/zephyr-sdk-0.10.3/nios2-zephyr-elf/nios2-zephyr-elf/include/c++/8.3.0/bits/refwrap.h #18685

Closed aasthagr closed 5 years ago

aasthagr commented 5 years ago

Static code scan issues seen in File: /opt/zephyr-sdk-0.10.3/nios2-zephyr-elf/nios2-zephyr-elf/include/c++/8.3.0/bits/refwrap.h Category: Parse warnings Function: Component: Other CID: 203621 Please fix or provide comments to square it off in coverity in the link: https://scan9.coverity.com/reports.htm#v32951/p12996

aasthagr commented 5 years ago
*** CID 203621:  Parse warnings  (PARSE_ERROR)
/opt/zephyr-sdk-0.10.3/nios2-zephyr-elf/nios2-zephyr-elf/include/c++/8.3.0/bits/refwrap.h: 103 in ()
97     _GLIBCXX_MEM_FN_TRAITS( , true_type, true_type)
98     _GLIBCXX_MEM_FN_TRAITS(&, true_type, false_type)
99     _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type)
100     
101     #if __cplusplus > 201402L
102     _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type)
>>>     CID 203621:  Parse warnings  (PARSE_ERROR)
>>>     class template "std::_Mem_fn_traits" has already been defined
103     _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type)
104     _GLIBCXX_MEM_FN_TRAITS(&& noexcept, false_type, true_type)
105     #endif
106     
107     #undef _GLIBCXX_MEM_FN_TRAITS
108     #undef _GLIBCXX_MEM_FN_TRAITS2
galak commented 5 years ago

Not dealing with issues from SDK / toolchain headers.