dschanoeh / socketcand

A deprecated fork of socketcand. Please got to linux-can for the latest version.
https://github.com/linux-can/socketcand
131 stars 40 forks source link

warning: ‘sigset’ may be used uninitialized in this function [-Wmaybe-uninitialized] #16

Open akast opened 6 years ago

akast commented 6 years ago

~/socketcand# make gcc -Wall -Wno-parentheses -DPF_CAN=29 -DAF_CAN=PF_CAN -DHAVE_CONFIG_H -I . -I ./include -o socketcand ./socketcand.c ./statistics.c ./beacon.c ./state_bcm.c ./state_raw.c ./state_isotp.c ./state_control.c -lpthread gcc -Wall -Wno-parentheses -DPF_CAN=29 -DAF_CAN=PF_CAN -DHAVE_CONFIG_H -I . -I ./include -o socketcandcl ./socketcandcl.c ./socketcandcl.c: In function ‘main’: ./socketcandcl.c:179:24: warning: ‘sigset’ may be used uninitialized in this function [-Wmaybe-uninitialized] sigint_action.sa_mask = sigset;

yegorich commented 5 years ago

@akast could you test the referenced PR? Thanks.

yegorich commented 5 years ago

See new upstream repository https://github.com/linux-can/socketcand