Merge lp:~laurynas-biveinis/percona-pam-for-mysql/bug880268 into lp:percona-pam-for-mysql

Proposed by Laurynas Biveinis
Status: Merged
Approved by: Laurynas Biveinis
Approved revision: 6
Merge reported by: Laurynas Biveinis
Merged at revision: not available
Proposed branch: lp:~laurynas-biveinis/percona-pam-for-mysql/bug880268
Merge into: lp:percona-pam-for-mysql
Diff against target: 27 lines (+9/-1)
1 file modified
auth_pam.c (+9/-1)
To merge this branch: bzr merge lp:~laurynas-biveinis/percona-pam-for-mysql/bug880268
Reviewer Review Type Date Requested Status
Stewart Smith Approve
Review via email: mp+80144@code.launchpad.net

Description of the change

Fix bug 880268: with MySQL 5.5.16, plugin compilation gives:

auth_pam.c:303:1: error: missing initializer [-Werror=missing-field-initializers]
auth_pam.c:303:1: error: (near initialization for ‘_mysql_plugin_declarations_[0].flags’) [-Werror=missing-field-initializers]
auth_pam.c:318:2: error: missing initializer [-Werror=missing-field-initializers]
auth_pam.c:318:2: error: (near initialization for ‘_mysql_plugin_declarations_[1].flags’) [-Werror=missing-field-initializers]
cc1: all warnings being treated as errors

MySQL 5.5.16 has introduced new flags field in st_plugin struct and
has bumped MYSQL_PLUGIN_INTERFACE_VERSION.

Fix by initializing it.

To post a comment you must log in.
Revision history for this message
Stewart Smith (stewart) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'auth_pam.c'
--- auth_pam.c 2011-06-22 13:49:35 +0000
+++ auth_pam.c 2011-10-23 09:47:24 +0000
@@ -300,6 +300,10 @@
300 NULL,300 NULL,
301 NULL,301 NULL,
302 NULL302 NULL
303#if MYSQL_PLUGIN_INTERFACE_VERSION >= 0x103
304 ,
305 0
306#endif
303},307},
304{308{
305 MYSQL_AUTHENTICATION_PLUGIN,309 MYSQL_AUTHENTICATION_PLUGIN,
@@ -315,7 +319,11 @@
315 NULL,319 NULL,
316 NULL,320 NULL,
317 NULL321 NULL
318 }322#if MYSQL_PLUGIN_INTERFACE_VERSION >= 0x103
323 ,
324 0
325#endif
326}
319mysql_declare_plugin_end;327mysql_declare_plugin_end;
320328
321/* The client plugin */329/* The client plugin */

Subscribers

People subscribed via source and target branches