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
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