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.59k stars 6.48k forks source link

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

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: 203620 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 203620:  Parse warnings  (PARSE_ERROR)
/opt/zephyr-sdk-0.10.3/nios2-zephyr-elf/nios2-zephyr-elf/include/c++/8.3.0/bits/refwrap.h: 102 in ()
96     
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
>>>     CID 203620:  Parse warnings  (PARSE_ERROR)
>>>     class template "std::_Mem_fn_traits" has already been defined
102     _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type)
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
galak commented 5 years ago

Not dealing with issues from SDK / toolchain headers.