RedlineResearch / elephant-tracks

0 stars 1 forks source link

Build error in ETCallBackHandler.cpp #2

Closed greatmazinger closed 8 years ago

greatmazinger commented 8 years ago

ETCallBackHandler.cpp: In member function ‘void ETCallBackHandler::timeStampTag(jlong, jlong)’: ETCallBackHandler.cpp:406:64: error: narrowing conversion of ‘thread_tag’ from ‘jlong {aka long int}’ to ‘long unsigned int’ inside { } is ill-formed in C++11 [-Werror=narrowing] tagTimeMap[tag] = (TimeStamp){this->currentTime, threadtag}; ^ ETCallBackHandler.cpp: In member function ‘void ETCallBackHandler::computeObjectDeathTimes()’: ETCallBackHandler.cpp:1135:42: error: narrowing conversion of ‘-1l’ from ‘long int’ to ‘long un signed int’ inside { } is ill-formed in C++11 [-Werror=narrowing] TimeStamp lastTime = (TimeStamp){-1L, 0}; // This assumes two's complement to find max long. ^ ETCallBackHandler.cpp: In function ‘void instSetObjectArrayElement(JNIEnv, jobjectArray, jsize , jobject)’: ETCallBackHandler.cpp:1500:29: error: comparison between signed and unsigned integer expression s [-Werror=sign-compare] if (((unsigned)index) < len) { ^ cc1plus: all warnings being treated as errors make: _\ [ETCallBackHandler.o] Error 1

greatmazinger commented 8 years ago

Fixed in commit bc7668f6de947970c7aff0725008438ac7ff9a44