You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hpguppi_coherent_bf_thread.c: In function ‘safe_close_all’:
hpguppi_coherent_bf_thread.c:57:29: error: division ‘sizeof (int *) / sizeof (int)’ does not compute the number of array elements [-Werror=sizeof-pointer-div]
int pfd_size = sizeof(pfd)/sizeof(int);
^
hpguppi_coherent_bf_thread.c:55:32: note: first ‘sizeof’ operand was declared here
static int safe_close_all(int *pfd) {
~~~~~^~~
cc1: all warnings being treated as errors
gcc 8 throws a warning/error on this bit of code. I think it is correctly identifying an error here - this doesn't actually calculate the size of pfd, which I think will cause it to leave files open.
The text was updated successfully, but these errors were encountered:
hpguppi_proc/src/hpguppi_coherent_bf_thread.c
Line 57 in 4c09934
gcc 8 throws a warning/error on this bit of code. I think it is correctly identifying an error here - this doesn't actually calculate the size of pfd, which I think will cause it to leave files open.
The text was updated successfully, but these errors were encountered: