From 9061fbc8e5e591b87480ae610b2483580e2c1694 Mon Sep 17 00:00:00 2001
From: unknown <monty@mysql.com>
Date: Fri, 28 May 2004 10:41:38 +0300
Subject: [PATCH] New patch to ensure that InnoDB gets values for CFLAGS and
 CXXFLAGS

sql/handler.h:
  Remove compiler warnings
---
 configure.in  | 1 +
 sql/handler.h | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 7d538c77fc5..20b892a249c 100644
--- a/configure.in
+++ b/configure.in
@@ -2659,6 +2659,7 @@ AM_CONDITIONAL(HAVE_NETWARE, test "$netware_dir" = "netware")
 
 # Ensure that table handlers gets all modifications to CFLAGS/CXXFLAGS
 export CC CXX CFLAGS CXXFLAGS LD LDFLAGS AR
+ac_configure_args="$ac_configure_args CFLAGS='$CFLAGS' CXXFLAGS='$CXXFLAGS'"
 
 if test "$with_server" = "yes" -o "$THREAD_SAFE_CLIENT" != "no"
 then
diff --git a/sql/handler.h b/sql/handler.h
index 0f8edc2cf12..04a437725ab 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -403,12 +403,12 @@ class handler :public Sql_alloc
   {
     return (HA_DDL_SUPPORT);
   }
-  virtual int add_index(TABLE *table, KEY *key_info, uint num_of_keys)
+  virtual int add_index(TABLE *table_arg, KEY *key_info, uint num_of_keys)
   {
     my_error(ER_NOT_SUPPORTED_YET, MYF(0), "online add index");
     return (HA_DDL_NOT_IMPLEMENTED);
   }
-  virtual int drop_index(TABLE *table, uint *key_num, uint num_of_keys)
+  virtual int drop_index(TABLE *table_arg, uint *key_num, uint num_of_keys)
   {
     my_error(ER_NOT_SUPPORTED_YET, MYF(0), "online drop index");
     return (HA_DDL_NOT_IMPLEMENTED);
-- 
2.30.9