Author: wyoung
Date: Wed Jun 10 09:32:18 2009
New Revision: 2520

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2520&view=rev
Log:
GCC pedantic warning squishers

Modified:
    trunk/lib/insertpolicy.h
    trunk/lib/transaction.h

Modified: trunk/lib/insertpolicy.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/insertpolicy.h?rev=2520&r1=2519&r2=2520&view=diff
==============================================================================
--- trunk/lib/insertpolicy.h (original)
+++ trunk/lib/insertpolicy.h Wed Jun 10 09:32:18 2009
@@ -81,7 +81,7 @@
        /// \retval true if the object is allowed to be added to the
        /// INSERT statement
        template <class RowT>
-       bool can_add(int size, const RowT& object)
+       bool can_add(int, const RowT&)
        {
                if (++cur_rows_ > max_rows_) {
                        cur_rows_ = 0;
@@ -194,7 +194,7 @@
                        // item pushes it over the line.
                        SQLStream s(conn_);
                        s << ",(" << object.value_list() << ")";
-                       return (size_ - size) >= (int)s.str().size();
+                       return (size_ - size) >= 
static_cast<int>(s.str().size());
                }
                else {
                        // Already too much in query buffer!

Modified: trunk/lib/transaction.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/transaction.h?rev=2520&r1=2519&r2=2520&view=diff
==============================================================================
--- trunk/lib/transaction.h (original)
+++ trunk/lib/transaction.h Wed Jun 10 09:32:18 2009
@@ -138,7 +138,7 @@
 {
 public:
        /// \brief Constructor
-       NoTransaction(Connection& conn, bool consistent = false)
+       NoTransaction(Connection&, bool = false)
        {
        }
 


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to