List:Commits« Previous MessageNext Message »
From:Monty Taylor Date:July 16 2008 5:58pm
Subject:bzr commit into mysql-5.1-telco-6.2 branch (monty:2633) Bug#38177
View as plain text  
#At http://bazaar.launchpad.net/~mordred/mysql-server/5.1-telco-6.2

 2633 Monty Taylor	2008-07-16
      BUG#38177 - Public headers prevent applications from being built with warnings
turned on
      
      Fixed all of the build warnings produced by compiling a test program with: "-W -Wall
-Wextra -std=gnu++98 -pedantic -Wundef -Wredundant-decls -Wno-long-long
-Wno-strict-aliasing  -Werror"
modified:
  include/my_global.h
  include/mysql_com.h
  storage/ndb/include/mgmapi/mgmapi.h
  storage/ndb/include/ndbapi/NdbIndexScanOperation.hpp
  storage/ndb/include/ndbapi/NdbOperation.hpp
  storage/ndb/include/ndbapi/NdbTransaction.hpp

=== modified file 'include/my_global.h'
--- a/include/my_global.h	2008-03-28 10:14:27 +0000
+++ b/include/my_global.h	2008-07-16 15:58:13 +0000
@@ -235,6 +235,7 @@
   now let's figure out if inline functions are supported
   autoconf defines 'inline' to be empty, if not
 */
+#define inline1 0
 #define inline_test_1(X)        X ## 1
 #define inline_test_2(X)        inline_test_1(X)
 #if inline_test_2(inline) != 1
@@ -242,6 +243,7 @@
 #endif
 #undef inline_test_2
 #undef inline_test_1
+#undef inline1
 /* helper macro for "instantiating" inline functions */
 #define STATIC_INLINE static inline
 

=== modified file 'include/mysql_com.h'
--- a/include/mysql_com.h	2008-04-08 08:31:46 +0000
+++ b/include/mysql_com.h	2008-07-16 15:58:13 +0000
@@ -486,9 +486,6 @@ const char *mysql_errno_to_sqlstate(unsi
 
 /* Some other useful functions */
 
-my_bool my_thread_init(void);
-void my_thread_end(void);
-
 #ifdef _global_h
 ulong STDCALL net_field_length(uchar **packet);
 my_ulonglong net_field_length_ll(uchar **packet);

=== modified file 'storage/ndb/include/mgmapi/mgmapi.h'
--- a/storage/ndb/include/mgmapi/mgmapi.h	2008-03-28 10:31:07 +0000
+++ b/storage/ndb/include/mgmapi/mgmapi.h	2008-07-16 15:58:13 +0000
@@ -443,11 +443,7 @@ extern "C" {
    */
   int ndb_mgm_number_of_mgmd_in_connect_string(NdbMgmHandle handle);
 
-  int ndb_mgm_set_configuration_nodeid(NdbMgmHandle handle, int nodeid);
   int ndb_mgm_get_configuration_nodeid(NdbMgmHandle handle);
-  int ndb_mgm_get_connected_port(NdbMgmHandle handle);
-  const char *ndb_mgm_get_connected_host(NdbMgmHandle handle);
-  const char *ndb_mgm_get_connectstring(NdbMgmHandle handle, char *buf, int buf_sz);
 
   /**
    * Set local bindaddress

=== modified file 'storage/ndb/include/ndbapi/NdbIndexScanOperation.hpp'
--- a/storage/ndb/include/ndbapi/NdbIndexScanOperation.hpp	2008-02-19 15:00:29 +0000
+++ b/storage/ndb/include/ndbapi/NdbIndexScanOperation.hpp	2008-07-16 15:58:13 +0000
@@ -309,6 +309,7 @@ int
 NdbIndexScanOperation::setBound(const char* attr, int type, const void* value,
                                 Uint32 len)
 {
+  (void)len; // unused param
   return setBound(attr, type, value);
 }
 
@@ -317,6 +318,7 @@ int
 NdbIndexScanOperation::setBound(Uint32 anAttrId, int type, const void* value,
                                 Uint32 len)
 {
+  (void)len; // unused param
   return setBound(anAttrId, type, value);
 }
 

=== modified file 'storage/ndb/include/ndbapi/NdbOperation.hpp'
--- a/storage/ndb/include/ndbapi/NdbOperation.hpp	2008-04-28 14:17:28 +0000
+++ b/storage/ndb/include/ndbapi/NdbOperation.hpp	2008-07-16 15:58:13 +0000
@@ -1447,6 +1447,9 @@ inline
 int
 NdbOperation::checkMagicNumber(bool b)
 {
+#ifndef NDB_NO_DROPPED_SIGNAL
+  (void)b;  // unused param in this context
+#endif
   if (theMagicNumber != 0xABCDEF01){
 #ifdef NDB_NO_DROPPED_SIGNAL
     if(b) abort();
@@ -1568,6 +1571,7 @@ inline
 int
 NdbOperation::equal(const char* anAttrName, const char* aValue, Uint32 len)
 {
+  (void)len; // unused param
   return equal(anAttrName, aValue);
 }
 
@@ -1603,6 +1607,7 @@ inline
 int
 NdbOperation::equal(Uint32 anAttrId, const char* aValue, Uint32 len)
 {
+  (void)len; // unused param
   return equal(anAttrId, aValue);
 }
 
@@ -1638,6 +1643,7 @@ inline
 int
 NdbOperation::setValue(const char* anAttrName, const char* aValue, Uint32 len)
 {
+  (void)len; // unused param
   return setValue(anAttrName, aValue);
 }
 
@@ -1687,6 +1693,7 @@ inline
 int
 NdbOperation::setValue(Uint32 anAttrId, const char* aValue, Uint32 len)
 {
+  (void)len; // unused param
   return setValue(anAttrId, aValue);
 }
 

=== modified file 'storage/ndb/include/ndbapi/NdbTransaction.hpp'
--- a/storage/ndb/include/ndbapi/NdbTransaction.hpp	2008-02-19 15:00:29 +0000
+++ b/storage/ndb/include/ndbapi/NdbTransaction.hpp	2008-07-16 15:58:13 +0000
@@ -1093,6 +1093,7 @@ inline
 void
 NdbTransaction::set_send_size(Uint32 send_size)
 {
+  (void)send_size; // unused param
   return;
 }
 

Thread
bzr commit into mysql-5.1-telco-6.2 branch (monty:2633) Bug#38177Monty Taylor16 Jul