Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 2797

warning: function was declared but never referenced

$
0
0

Hi, i'm trying to compile my project (https://github.com/riclas/rstm) with ICC but it gives me the following warning, which GCC doesn't:

 

/home/rfilipe/rstm-icc/libstm/algs/norec.cpp(43): warning #177: function "<unnamed>::NOrec_Generic<CM>::commit [with CM=stm::HourglassBackoffCM]" was declared but never referenced

        static TM_FASTCALL void commit(STM_COMMIT_SIG(,));

 

TM_FASTCALL is empty because of an ICC bug reported on https://software.intel.com/en-us/forums/intel-c-compiler/topic/609775.

STM_COMMIT_SIG = TxThread* tx

read and write functions have very similar signatures, declarations and references and don't give this warning.

 

I would like some help to understand if there is something wrong with the code or if it is another ICC bug, since when i run the executable it segfaults here. I have no problem with GCC.

 

Thank you

 

 

relevant lines:

https://github.com/riclas/rstm/blob/master/libstm/algs/norec.cpp#L43

https://github.com/riclas/rstm/blob/master/libstm/algs/algs.hpp#L109

https://github.com/riclas/rstm/blob/master/include/stm/txthread.hpp#L120

https://github.com/riclas/rstm/blob/master/libstm/inst.cpp


Viewing all articles
Browse latest Browse all 2797

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>