Fix Compiler::compile() return code. Fix some uninitialized variable.
diff --git a/lib/bcc/Compiler.cpp b/lib/bcc/Compiler.cpp
index b0aaef0..e72950f 100644
--- a/lib/bcc/Compiler.cpp
+++ b/lib/bcc/Compiler.cpp
@@ -660,20 +660,12 @@
if (TM)
delete TM;
-#if 0
if (mError.empty()) {
- if (mUseCache && mCacheFd >= 0 && mCacheNew) {
- genCacheFile();
- //LOGI("DONE generating cache file"); //sliao
- flock(mCacheFd, LOCK_UN);
- }
-
- return false;
+ return 0;
}
-#endif
// LOGE(getErrorMessage());
- return true;
+ return 1;
}