Fix building Samba with GCC 7.1. Patch will follow.
Created attachment 13258 [details] patch for 4.6
Created attachment 13259 [details] patch for 4.6
Created attachment 13260 [details] patch for 4.6 The addtional patches Douglas already did earlier.
Comment on attachment 13260 [details] patch for 4.6 LGTM.
Re-assigning to Karolin for inclusion in 4.6.next.
(In reply to Jeremy Allison from comment #5) Pushed to autibuild-v4-6-test.
(In reply to Karolin Seeger from comment #6) Pushed to v4-6-test. Closing out bug report. Thanks!