Author: wyoung
Date: Tue May 18 03:04:02 2010
New Revision: 2635
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2635&view=rev
Log:
Several pedantic warnings squished
Modified:
trunk/Wishlist
trunk/examples/multiquery.cpp
trunk/lib/null.h
trunk/ssx/parsev2.cpp
trunk/ssx/parsev2.h
Modified: trunk/Wishlist
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/Wishlist?rev=2635&r1=2634&r2=2635&view=diff
==============================================================================
--- trunk/Wishlist (original)
+++ trunk/Wishlist Tue May 18 03:04:02 2010
@@ -17,10 +17,6 @@
v3.1 Plan
---------
- o Fix pedantic warning:
-
- lib/null.h:55: warning: type qualifiers ignored on function return type
-
o Can we bring examples/vstudio into the top-level build system?
Would be nice to get MYSQL_WIN_DIR support, and to make it
link against the built MySQL++ instead of requiring it to be
Modified: trunk/examples/multiquery.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/multiquery.cpp?rev=2635&r1=2634&r2=2635&view=diff
==============================================================================
--- trunk/examples/multiquery.cpp (original)
+++ trunk/examples/multiquery.cpp Tue May 18 03:04:02 2010
@@ -95,7 +95,7 @@
// Figure out the widths of the result set's columns
IntVectorType widths;
size_t size = res.num_fields();
- for (int i = 0; i < size; i++) {
+ for (size_t i = 0; i < size; i++) {
widths.push_back(max(
res.field(i).max_length(),
res.field_name(i).size()));
Modified: trunk/lib/null.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/null.h?rev=2635&r1=2634&r2=2635&view=diff
==============================================================================
--- trunk/lib/null.h (original)
+++ trunk/lib/null.h Tue May 18 03:04:02 2010
@@ -187,6 +187,7 @@
/// "data" member is left uninitialized by this ctor, because we
/// don't know what to initialize it to.
Null() :
+ data(),
is_null(false)
{
}
@@ -213,6 +214,7 @@
/// \endcode
/// ...to get a null \c int.
Null(const null_type&) :
+ data(),
is_null(true)
{
}
Modified: trunk/ssx/parsev2.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/ssx/parsev2.cpp?rev=2635&r1=2634&r2=2635&view=diff
==============================================================================
--- trunk/ssx/parsev2.cpp (original)
+++ trunk/ssx/parsev2.cpp Tue May 18 03:04:02 2010
@@ -125,8 +125,9 @@
switch (type_) {
case camel_case_lower: os << "getX"; break;
case camel_case_upper: os << "GetX"; break;
+ case overloaded: os << "x"; break;
case stroustrup: os << "get_x"; break;
- case overloaded: os << "x"; break;
+ case unknown: os << "UNKNOWN"; break;
}
}
Modified: trunk/ssx/parsev2.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/ssx/parsev2.h?rev=2635&r1=2634&r2=2635&view=diff
==============================================================================
--- trunk/ssx/parsev2.h (original)
+++ trunk/ssx/parsev2.h Tue May 18 03:04:02 2010
@@ -195,10 +195,10 @@
const std::string& alias = 0) :
name_(name),
type_(type),
- is_unsigned_(is_unsigned),
- is_null_(is_null),
is_autoinc_(is_autoinc),
is_key_(is_key),
+ is_null_(is_null),
+ is_unsigned_(is_unsigned),
alias_(alias)
{
}
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits