Created attachment 415039 [details] Patch to fix the warning Description of problem: I'm getting warning about unused parameter n in mysqlpp::Null& operator =(const null_types& n) when using mysqlpp::Null<> in sql_create macros Version-Release number of selected component (if applicable): 3.0.9-3
Created attachment 415040 [details] Patch for specfile
There are some more warning coming from sql_create_n: --------------- example ---------------- #include <mysql++.h> #include <ssqls.h> sql_create_3( test_table, 1, 3, mysqlpp::sql_int, user_id, mysqlpp::sql_varchar, user_name, mysqlpp::sql_varchar, user_hash); std::vector<test_table> data; ------------------------------------------ [apavenis@callisto mysql++]$ g++ -c -Wall -Wextra -I/usr/include/mysql++ -I/usr/include/mysql sql_create_warn.cpp sql_create_warn.cpp:10: warning: type qualifiers ignored on function return type I also got one more warning: warning: ‘<unnamed>::sync_user::names’ defined but not used from real code (not example) friom the same source line but failed to reproduce it in this example.
s this bug reported upstream ? (link ?) Is this patch from upstream SVN ? (commit ref ?)
I haven't reported it and did not check SVN version.
Read : http://lists.mysql.com/plusplus/8955 As new version 3.1.0 with fixes included is imminent, I think we could wait for it
Version 3.1.0 is available in repository.