Compiler warning around wsrep options

Bug #1369916 reported by Philip Stoev on 2014-09-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Status tracked in 5.6
5.5
Undecided
Teemu Ollakka
5.6
Undecided
Teemu Ollakka
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Status tracked in 5.6
5.5
Fix Committed
Undecided
Unassigned
5.6
Fix Released
Undecided
Unassigned

Bug Description

Compiling on Fedora 20 with GCC 4.8.3 causes the following warning:

/home/philips/git/codership-mysql/sql/mysqld.cc: In function ‘int get_options(int*, char***)’:
/home/philips/git/codership-mysql/sql/mysqld.cc:9649:217: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint {aka unsigned int}’ [-Wformat=]
           WSREP_WARN("--wsrep-sync-wait=%lu takes precedence over --wsrep-causal-reads=OFF. "
                                                                                                                                                                                                                         ^
/home/philips/git/codership-mysql/sql/mysqld.cc:9649:217: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint {aka unsigned int}’ [-Wformat=]

affects: galera → codership-mysql

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1737

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers