Permalink
Browse files

core, bugfix: fix compile waring in debug mode.

  • Loading branch information...
xicilion committed Dec 27, 2017
1 parent 3a8ba73 commit 5b694853b08b8e2ab711b21c50434e5352fae5f5
Showing with 3 additions and 5 deletions.
  1. +1 −3 fibjs/include/Message.h
  2. +2 −1 fibjs/src/base/Runtime.cpp
  3. +0 −1 fibjs/src/db/sql/SQLite.cpp
View
@@ -40,9 +40,8 @@ class Message : public Message_base {
virtual result_t set_lastError(exlib::string newVal);
public:
Message(bool bRep = false)
Message()
: m_type(_BINARY)
, m_bRep(bRep)
, m_end(false)
{
}
@@ -59,7 +58,6 @@ class Message : public Message_base {
exlib::string m_value;
obj_ptr<SeekableStream_base> m_body;
exlib::string m_lastError;
bool m_bRep;
bool m_end;
};
@@ -219,11 +219,12 @@ static result_t syncExit(Isolate* isolate)
bool r;
t._emit("beforeExit", &code, 1, r);
if (s_iso_ref == 1)
if (s_iso_ref == 1) {
if (isolate->m_hr == 0)
process_base::exit();
else
process_base::exit(isolate->m_hr);
}
return 0;
}
@@ -74,7 +74,6 @@ static void hook_fts5_api(sqlite3* db)
{
fts5_api* pApi = 0;
sqlite3_stmt* pStmt = 0;
void* pUserdata = 0;
if (SQLITE_OK == sqlite3_prepare(db, "SELECT fts5(?)", -1, &pStmt, 0)) {
sqlite3_bind_pointer(pStmt, 1, (void*)&pApi, "fts5_api_ptr", NULL);

0 comments on commit 5b69485

Please sign in to comment.