Compilation warnings in auth_mapping.c

Bug #1190662 reported by Sergei Glushchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
percona-pam-for-mysql
Fix Released
Low
Sergei Glushchenko

Bug Description

00:02:33.819 /mnt/workspace/percona-server-5.5-param/BUILD_TYPE/debug/Host/ubuntu-precise-64bit/Percona-Server/plugin/percona-pam-for-mysql/src/auth_mapping.c: In function ‘mapping_iter_next’:
00:02:33.860 /mnt/workspace/percona-server-5.5-param/BUILD_TYPE/debug/Host/ubuntu-precise-64bit/Percona-Server/plugin/percona-pam-for-mysql/src/auth_mapping.c:107:10: error: missing initializer [-Werror=missing-field-initializers]
00:02:33.860 /mnt/workspace/percona-server-5.5-param/BUILD_TYPE/debug/Host/ubuntu-precise-64bit/Percona-Server/plugin/percona-pam-for-mysql/src/auth_mapping.c:107:10: error: (near initialization for ‘token[0].token’) [-Werror=missing-field-initializers]
00:02:33.861 /mnt/workspace/percona-server-5.5-param/BUILD_TYPE/debug/Host/ubuntu-precise-64bit/Percona-Server/plugin/percona-pam-for-mysql/src/auth_mapping.c: In function ‘mapping_lookup_user’:
00:02:33.861 /mnt/workspace/percona-server-5.5-param/BUILD_TYPE/debug/Host/ubuntu-precise-64bit/Percona-Server/plugin/percona-pam-for-mysql/src/auth_mapping.c:183:30: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
00:02:33.861 cc1: all warnings being treated as errors
00:02:33.862 make[2]: *** [plugin/percona-pam-for-mysql/CMakeFiles/auth_pam.dir/src/auth_mapping.c.o] Error 1

This causes debug builds with -DWITH_PAM=ON to fail.

Related branches

Changed in percona-pam-for-mysql:
status: New → Confirmed
assignee: nobody → Sergei Glushchenko (sergei.glushchenko)
status: Confirmed → In Progress
Changed in percona-pam-for-mysql:
status: In Progress → Fix Committed
Changed in percona-pam-for-mysql:
importance: Undecided → Low
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.