aboutsummaryrefslogtreecommitdiffstats
path: root/exec/exec.c
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-04-09 15:57:31 +0200
committerMattias EngdegÄrd2023-04-09 18:23:05 +0200
commit6157e3e4bc7e4e097e02c572379d1b1542e1d716 (patch)
treeeccda38427b4e8e7d2a42f2211f3f59d2a9331d0 /exec/exec.c
parent4f0849a9e6d29e25d23e061bd81bacce9468856d (diff)
downloademacs-6157e3e4bc7e4e097e02c572379d1b1542e1d716.tar.gz
emacs-6157e3e4bc7e4e097e02c572379d1b1542e1d716.zip
Extend ignored-return-value warning to more functions (bug#61730)
Warn when the return value of certain functions is unused. Previously this was only done for side-effect-free functions, and for `mapcar`. These are functions where the return value is important for correct usage or where ignoring it is likely to indicate a mistake. The exact set of functions is tentative and will be modified as we gain a better understanding of which ones to include. The current set comprises higher order functions such as `mapcar` which are not primarily called for the effects of their function arguments, and list-mutating functions like `nreverse` whose return value is essential. * lisp/emacs-lisp/bytecomp.el (byte-compile-form): Add list of functions to warn about when their value is ignored. * etc/NEWS: Announce.
Diffstat (limited to 'exec/exec.c')
0 files changed, 0 insertions, 0 deletions