List:Commits« Previous MessageNext Message »
From:svoj Date:January 10 2006 11:05am
Subject:bk commit into 5.1 tree (svoj:1.2021)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of svoj. When svoj does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2021 06/01/10 15:05:31 svoj@april.(none) +2 -0
  Fixed warnings.

  plugin/fulltext/plugin_example.c
    1.3 06/01/10 15:04:36 svoj@april.(none) +7 -5
    Fixed warnings.

  include/plugin.h
    1.8 06/01/10 15:04:36 svoj@april.(none) +1 -1
    mysql_plugin_declaration contains 9 elements now.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	svoj
# Host:	april.(none)
# Root:	/home/svoj/devel/mysql/warnings/mysql-5.1-new

--- 1.7/include/plugin.h	2006-01-07 17:41:39 +04:00
+++ 1.8/include/plugin.h	2006-01-10 15:04:36 +04:00
@@ -41,7 +41,7 @@
 int _mysql_plugin_interface_version_= MYSQL_PLUGIN_INTERFACE_VERSION; \
 int _mysql_sizeof_struct_st_plugin_= sizeof(struct st_mysql_plugin); \
 struct st_mysql_plugin _mysql_plugin_declarations_[]= {
-#define mysql_declare_plugin_end ,{0,0,0,0,0,0,0,0}}
+#define mysql_declare_plugin_end ,{0,0,0,0,0,0,0,0,0}}
 
 /*
   declarations for SHOW STATUS support in plugins

--- 1.2/plugin/fulltext/plugin_example.c	2006-01-07 17:41:40 +04:00
+++ 1.3/plugin/fulltext/plugin_example.c	2006-01-10 15:04:36 +04:00
@@ -98,7 +98,8 @@
     1                    failure (cannot happen)
 */
 
-static int simple_parser_init(MYSQL_FTPARSER_PARAM *param)
+static int simple_parser_init(MYSQL_FTPARSER_PARAM *param
+                              __attribute__((unused)))
 {
   return(0);
 }
@@ -118,7 +119,8 @@
     1                    failure (cannot happen)
 */
 
-static int simple_parser_deinit(MYSQL_FTPARSER_PARAM *param)
+static int simple_parser_deinit(MYSQL_FTPARSER_PARAM *param
+                                __attribute__((unused)))
 {
   return(0);
 }
@@ -179,7 +181,7 @@
         add_word(param, start, end - start);
       break;
     }
-    else if (isspace(*end))
+    else if (my_isspace(param->cs, *end))
     {
       if (end > start)
         add_word(param, start, end - start);
@@ -208,7 +210,7 @@
 
 struct st_mysql_show_var simple_status[]=
 {
-  {"static",     "just a static text",     SHOW_CHAR},
+  {"static",     (char *)"just a static text",     SHOW_CHAR},
   {"called",     (char *)&number_of_calls, SHOW_LONG},
   {0,0,0}
 };
@@ -227,6 +229,6 @@
   simple_parser_plugin_init,  /* init function (when loaded)     */
   simple_parser_plugin_deinit,/* deinit function (when unloaded) */
   0x0001,                     /* version                         */
-  &simple_status              /* status variables                */
+  simple_status               /* status variables                */
 }
 mysql_declare_plugin_end;
Thread
bk commit into 5.1 tree (svoj:1.2021)svoj10 Jan