Fix =sizeof-pointer-memaccess: argument to ‘sizeof’ in ‘strncpy’ call… Browse filesBrowse the repository at this point in the history … is the same expression as the source; did you mean to use the size of the destination? Loading branch information...
* c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs. (maybe_warn_sizeof_array_div): New function. * c.opt (Wsizeof-array-div): New option. gcc/c/ChangeLog: PR c++/91741 * c-parser.c (c_parser_binary_expression): Implement -Wsizeof-array-div. (c_parser_postfix_...
drivers/net/wireless/rockchip_wlan/wkwifi/bcmdhd/dhd_linux.c:6965:39: warning argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] error, forbidding warning:dhd_linux.c:6965 ...
Dear, can't compile for this error: zmap.c: En la función ‘split_string’: zmap.c:52:33: error: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memac...