pytorch/executorch ciflow/trunk/20368 (opens in new tab)
#Python portable: Add const to local vars to suppress CPPCHECK warning CPPCHECK flagged apply_unary_map_reduce_fn with a constStatement warning. This is a false positive — the code compiles correctly and the result is assigned to a variable used in subsequent computation. Adding const to the declarations suppresses the warning. Signed-off-by: Youngsik Yang vacu9708@gmail.com
Read the original article