fpgad: Fix gcc7 build failure due to -Werror=maybe-uninitialized
gcc 7.1.0 issues build failures due to apevt_socket1 and apevt_socket2
not being initialized in ap_event.c (-Werror=maybe-uninitialized).
The fix is quite simple. Just initialize apevt_socket1/2 at the beginning.
@@ -137,6 +137,9 @@ void *apevent_thread(void *thread_context)
struct fpga_ap_event apevt_socket1;
struct fpga_ap_event apevt_socket2;
+ memset(&apevt_socket1, 0, sizeof(apevt_socket1));
+ memset(&apevt_socket2, 0, sizeof(apevt_socket2));
+
// Max sockets count 2
apevt_socket1.socket = 0;
apevt_socket2.socket = 1;
