Bug 593564 - Warnings when using sql_create_N() macros containing mysqlpp::Null<>
Warnings when using sql_create_N() macros containing mysqlpp::Null<>
Product: Fedora
Classification: Fedora
Component: mysql++ (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Remi Collet
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2010-05-19 03:09 EDT by Andris Pavenis
Modified: 2010-09-04 10:10 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-09-04 10:10:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to fix the warning (404 bytes, patch)
2010-05-19 03:09 EDT, Andris Pavenis
no flags Details | Diff
Patch for specfile (1.03 KB, patch)
2010-05-19 03:13 EDT, Andris Pavenis
no flags Details | Diff

  None (edit)
Description Andris Pavenis 2010-05-19 03:09:09 EDT
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):

Comment 1 Andris Pavenis 2010-05-19 03:13:06 EDT
Created attachment 415040 [details]
Patch for specfile
Comment 2 Andris Pavenis 2010-05-19 03:33:42 EDT
There are some more warning coming from sql_create_n:

--------------- example ----------------
#include <mysql++.h>
#include <ssqls.h>

    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.
Comment 3 Remi Collet 2010-05-19 03:35:41 EDT
s this bug reported upstream ? (link ?)
Is this patch from upstream SVN ? (commit ref ?)
Comment 4 Andris Pavenis 2010-05-19 04:10:38 EDT
I haven't reported it and did not check SVN version.
Comment 5 Remi Collet 2010-05-19 13:00:58 EDT
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
Comment 6 Remi Collet 2010-09-04 10:10:08 EDT
Version 3.1.0 is available in repository.

Note You need to log in before you can comment on or make changes to this bug.