Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
compiler warnings in spider
  • Loading branch information
Sergei Golubchik committed Feb 19, 2015
1 parent 16c01c7 commit c1ebb4a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions storage/spider/CMakeLists.txt
@@ -1,6 +1,11 @@
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_HANDLERSOCKET")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_HANDLERSOCKET")

IF(HAVE_WVLA)
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wno-vla")
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wno-vla")
ENDIF()

SET(SPIDER_SOURCES
spd_param.cc spd_sys_table.cc spd_trx.cc spd_db_conn.cc spd_conn.cc
spd_table.cc spd_direct_sql.cc spd_udf.cc spd_ping_table.cc
Expand Down
2 changes: 1 addition & 1 deletion storage/spider/ha_spider.cc
Expand Up @@ -10967,7 +10967,7 @@ bool ha_spider::is_crashed() const
DBUG_RETURN(FALSE);
}

bool ha_spider::auto_repair() const
bool ha_spider::auto_repair(int) const
{
DBUG_ENTER("ha_spider::auto_repair");
DBUG_PRINT("info",("spider this=%p", this));
Expand Down
2 changes: 1 addition & 1 deletion storage/spider/ha_spider.h
Expand Up @@ -682,7 +682,7 @@ class ha_spider: public handler
const char *name
);
bool is_crashed() const;
bool auto_repair() const;
bool auto_repair(int) const;
int disable_indexes(
uint mode
);
Expand Down

0 comments on commit c1ebb4a

Please sign in to comment.