Commit ec06ba24 authored by Michael Widenius's avatar Michael Widenius

Fixed compiler warnings

sql/item.h:
  Fixed wrong declaration
storage/sphinx/ha_sphinx.h:
  Fixed arguments to read_time()
storage/sphinx/snippets_udf.cc:
  Include mysql headerfile first to avoid compiler warnings
parent c4af2a25
...@@ -1887,7 +1887,7 @@ public: ...@@ -1887,7 +1887,7 @@ public:
{ return (uint)(max_length - test(value < 0)); } { return (uint)(max_length - test(value < 0)); }
bool eq(const Item *, bool binary_cmp) const; bool eq(const Item *, bool binary_cmp) const;
bool check_partition_func_processor(uchar *bool_arg) { return FALSE;} bool check_partition_func_processor(uchar *bool_arg) { return FALSE;}
bool check_vcol_func_processor(uchar arg) { return FALSE;} bool check_vcol_func_processor(uchar *arg) { return FALSE;}
}; };
......
...@@ -76,7 +76,8 @@ public: ...@@ -76,7 +76,8 @@ public:
virtual double scan_time () { return (double)( records+deleted )/20.0 + 10; } ///< called in test_quick_select to determine if indexes should be used virtual double scan_time () { return (double)( records+deleted )/20.0 + 10; } ///< called in test_quick_select to determine if indexes should be used
#endif #endif
virtual double read_time ( ha_rows rows ) { return (double)rows/20.0 + 1; } ///< index read time estimate virtual double read_time(uint index, uint ranges, ha_rows rows)
{ return (double)rows/20.0 + 1; } ///< index read time estimate
public: public:
int open ( const char * name, int mode, uint test_if_locked ); int open ( const char * name, int mode, uint test_if_locked );
......
...@@ -11,13 +11,6 @@ ...@@ -11,13 +11,6 @@
// did not, you can find it at http://www.gnu.org/ // did not, you can find it at http://www.gnu.org/
// //
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <sys/un.h>
#include <netdb.h>
#include <mysql_version.h> #include <mysql_version.h>
#if MYSQL_VERSION_ID>50100 #if MYSQL_VERSION_ID>50100
...@@ -27,6 +20,13 @@ ...@@ -27,6 +20,13 @@
#include "../mysql_priv.h" #include "../mysql_priv.h"
#endif #endif
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <sys/un.h>
#include <netdb.h>
#include <mysys_err.h> #include <mysys_err.h>
#include <my_sys.h> #include <my_sys.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment