diff options
| author | Paul Eggert | 2019-09-16 14:04:04 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-09-16 14:05:03 -0700 |
| commit | 2c2f0eb9fcdfb644c106679999501b9c7edf51e2 (patch) | |
| tree | 427a67f412721cb232fcc9e89df4d3b32a4d47ec | |
| parent | 57ac6523af76efe6f6767c5480b2832cdd3adc4d (diff) | |
| download | emacs-2c2f0eb9fcdfb644c106679999501b9c7edf51e2.tar.gz emacs-2c2f0eb9fcdfb644c106679999501b9c7edf51e2.zip | |
Remove obsolete Lint directives
Most of the directives were wrong anyway. Apparently
traditional lint hasn’t been used to check Emacs for years.
* src/callint.c (Finteractive):
* src/cm.c (evalcost):
* src/emacs.c (main):
* src/eval.c (call1, call2, call3, call4, call5, call6, call7, call8):
* src/fns.c (concat2, concat3, nconc2):
* src/term.c (calculate_ins_del_char_costs):
Omit ARGSUSED comments.
* src/eval.c (call1): Omit VARARGS comment.
| -rw-r--r-- | src/callint.c | 1 | ||||
| -rw-r--r-- | src/cm.c | 1 | ||||
| -rw-r--r-- | src/emacs.c | 1 | ||||
| -rw-r--r-- | src/eval.c | 9 | ||||
| -rw-r--r-- | src/fns.c | 3 | ||||
| -rw-r--r-- | src/term.c | 1 |
6 files changed, 0 insertions, 16 deletions
diff --git a/src/callint.c b/src/callint.c index d76836f32b2..449b5048609 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -35,7 +35,6 @@ static Lisp_Object point_marker; | |||
| 35 | /* String for the prompt text used in Fcall_interactively. */ | 35 | /* String for the prompt text used in Fcall_interactively. */ |
| 36 | static Lisp_Object callint_message; | 36 | static Lisp_Object callint_message; |
| 37 | 37 | ||
| 38 | /* ARGSUSED */ | ||
| 39 | DEFUN ("interactive", Finteractive, Sinteractive, 0, UNEVALLED, 0, | 38 | DEFUN ("interactive", Finteractive, Sinteractive, 0, UNEVALLED, 0, |
| 40 | doc: /* Specify a way of parsing arguments for interactive use of a function. | 39 | doc: /* Specify a way of parsing arguments for interactive use of a function. |
| 41 | For example, write | 40 | For example, write |
| @@ -30,7 +30,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 30 | 30 | ||
| 31 | int cost; /* sums up costs */ | 31 | int cost; /* sums up costs */ |
| 32 | 32 | ||
| 33 | /* ARGSUSED */ | ||
| 34 | int | 33 | int |
| 35 | evalcost (int c) | 34 | evalcost (int c) |
| 36 | { | 35 | { |
diff --git a/src/emacs.c b/src/emacs.c index 5a526687b14..558dd11a351 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -923,7 +923,6 @@ load_pdump (int argc, char **argv) | |||
| 923 | } | 923 | } |
| 924 | #endif /* HAVE_PDUMPER */ | 924 | #endif /* HAVE_PDUMPER */ |
| 925 | 925 | ||
| 926 | /* ARGSUSED */ | ||
| 927 | int | 926 | int |
| 928 | main (int argc, char **argv) | 927 | main (int argc, char **argv) |
| 929 | { | 928 | { |
diff --git a/src/eval.c b/src/eval.c index 06d5c63f7f7..2bfc16eae0e 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -1890,7 +1890,6 @@ verror (const char *m, va_list ap) | |||
| 1890 | 1890 | ||
| 1891 | /* Dump an error message; called like printf. */ | 1891 | /* Dump an error message; called like printf. */ |
| 1892 | 1892 | ||
| 1893 | /* VARARGS 1 */ | ||
| 1894 | void | 1893 | void |
| 1895 | error (const char *m, ...) | 1894 | error (const char *m, ...) |
| 1896 | { | 1895 | { |
| @@ -2649,7 +2648,6 @@ call0 (Lisp_Object fn) | |||
| 2649 | } | 2648 | } |
| 2650 | 2649 | ||
| 2651 | /* Call function fn with 1 argument arg1. */ | 2650 | /* Call function fn with 1 argument arg1. */ |
| 2652 | /* ARGSUSED */ | ||
| 2653 | Lisp_Object | 2651 | Lisp_Object |
| 2654 | call1 (Lisp_Object fn, Lisp_Object arg1) | 2652 | call1 (Lisp_Object fn, Lisp_Object arg1) |
| 2655 | { | 2653 | { |
| @@ -2657,7 +2655,6 @@ call1 (Lisp_Object fn, Lisp_Object arg1) | |||
| 2657 | } | 2655 | } |
| 2658 | 2656 | ||
| 2659 | /* Call function fn with 2 arguments arg1, arg2. */ | 2657 | /* Call function fn with 2 arguments arg1, arg2. */ |
| 2660 | /* ARGSUSED */ | ||
| 2661 | Lisp_Object | 2658 | Lisp_Object |
| 2662 | call2 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2) | 2659 | call2 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2) |
| 2663 | { | 2660 | { |
| @@ -2665,7 +2662,6 @@ call2 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2) | |||
| 2665 | } | 2662 | } |
| 2666 | 2663 | ||
| 2667 | /* Call function fn with 3 arguments arg1, arg2, arg3. */ | 2664 | /* Call function fn with 3 arguments arg1, arg2, arg3. */ |
| 2668 | /* ARGSUSED */ | ||
| 2669 | Lisp_Object | 2665 | Lisp_Object |
| 2670 | call3 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3) | 2666 | call3 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3) |
| 2671 | { | 2667 | { |
| @@ -2673,7 +2669,6 @@ call3 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3) | |||
| 2673 | } | 2669 | } |
| 2674 | 2670 | ||
| 2675 | /* Call function fn with 4 arguments arg1, arg2, arg3, arg4. */ | 2671 | /* Call function fn with 4 arguments arg1, arg2, arg3, arg4. */ |
| 2676 | /* ARGSUSED */ | ||
| 2677 | Lisp_Object | 2672 | Lisp_Object |
| 2678 | call4 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, | 2673 | call4 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, |
| 2679 | Lisp_Object arg4) | 2674 | Lisp_Object arg4) |
| @@ -2682,7 +2677,6 @@ call4 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, | |||
| 2682 | } | 2677 | } |
| 2683 | 2678 | ||
| 2684 | /* Call function fn with 5 arguments arg1, arg2, arg3, arg4, arg5. */ | 2679 | /* Call function fn with 5 arguments arg1, arg2, arg3, arg4, arg5. */ |
| 2685 | /* ARGSUSED */ | ||
| 2686 | Lisp_Object | 2680 | Lisp_Object |
| 2687 | call5 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, | 2681 | call5 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, |
| 2688 | Lisp_Object arg4, Lisp_Object arg5) | 2682 | Lisp_Object arg4, Lisp_Object arg5) |
| @@ -2691,7 +2685,6 @@ call5 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, | |||
| 2691 | } | 2685 | } |
| 2692 | 2686 | ||
| 2693 | /* Call function fn with 6 arguments arg1, arg2, arg3, arg4, arg5, arg6. */ | 2687 | /* Call function fn with 6 arguments arg1, arg2, arg3, arg4, arg5, arg6. */ |
| 2694 | /* ARGSUSED */ | ||
| 2695 | Lisp_Object | 2688 | Lisp_Object |
| 2696 | call6 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, | 2689 | call6 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, |
| 2697 | Lisp_Object arg4, Lisp_Object arg5, Lisp_Object arg6) | 2690 | Lisp_Object arg4, Lisp_Object arg5, Lisp_Object arg6) |
| @@ -2700,7 +2693,6 @@ call6 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, | |||
| 2700 | } | 2693 | } |
| 2701 | 2694 | ||
| 2702 | /* Call function fn with 7 arguments arg1, arg2, arg3, arg4, arg5, arg6, arg7. */ | 2695 | /* Call function fn with 7 arguments arg1, arg2, arg3, arg4, arg5, arg6, arg7. */ |
| 2703 | /* ARGSUSED */ | ||
| 2704 | Lisp_Object | 2696 | Lisp_Object |
| 2705 | call7 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, | 2697 | call7 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, |
| 2706 | Lisp_Object arg4, Lisp_Object arg5, Lisp_Object arg6, Lisp_Object arg7) | 2698 | Lisp_Object arg4, Lisp_Object arg5, Lisp_Object arg6, Lisp_Object arg7) |
| @@ -2710,7 +2702,6 @@ call7 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, | |||
| 2710 | 2702 | ||
| 2711 | /* Call function fn with 8 arguments arg1, arg2, arg3, arg4, arg5, | 2703 | /* Call function fn with 8 arguments arg1, arg2, arg3, arg4, arg5, |
| 2712 | arg6, arg7, arg8. */ | 2704 | arg6, arg7, arg8. */ |
| 2713 | /* ARGSUSED */ | ||
| 2714 | Lisp_Object | 2705 | Lisp_Object |
| 2715 | call8 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, | 2706 | call8 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, |
| 2716 | Lisp_Object arg4, Lisp_Object arg5, Lisp_Object arg6, Lisp_Object arg7, | 2707 | Lisp_Object arg4, Lisp_Object arg5, Lisp_Object arg6, Lisp_Object arg7, |
| @@ -532,14 +532,12 @@ Do NOT use this function to compare file names for equality. */) | |||
| 532 | static Lisp_Object concat (ptrdiff_t nargs, Lisp_Object *args, | 532 | static Lisp_Object concat (ptrdiff_t nargs, Lisp_Object *args, |
| 533 | enum Lisp_Type target_type, bool last_special); | 533 | enum Lisp_Type target_type, bool last_special); |
| 534 | 534 | ||
| 535 | /* ARGSUSED */ | ||
| 536 | Lisp_Object | 535 | Lisp_Object |
| 537 | concat2 (Lisp_Object s1, Lisp_Object s2) | 536 | concat2 (Lisp_Object s1, Lisp_Object s2) |
| 538 | { | 537 | { |
| 539 | return concat (2, ((Lisp_Object []) {s1, s2}), Lisp_String, 0); | 538 | return concat (2, ((Lisp_Object []) {s1, s2}), Lisp_String, 0); |
| 540 | } | 539 | } |
| 541 | 540 | ||
| 542 | /* ARGSUSED */ | ||
| 543 | Lisp_Object | 541 | Lisp_Object |
| 544 | concat3 (Lisp_Object s1, Lisp_Object s2, Lisp_Object s3) | 542 | concat3 (Lisp_Object s1, Lisp_Object s2, Lisp_Object s3) |
| 545 | { | 543 | { |
| @@ -2577,7 +2575,6 @@ This makes STRING unibyte and may change its length. */) | |||
| 2577 | return Qnil; | 2575 | return Qnil; |
| 2578 | } | 2576 | } |
| 2579 | 2577 | ||
| 2580 | /* ARGSUSED */ | ||
| 2581 | Lisp_Object | 2578 | Lisp_Object |
| 2582 | nconc2 (Lisp_Object s1, Lisp_Object s2) | 2579 | nconc2 (Lisp_Object s1, Lisp_Object s2) |
| 2583 | { | 2580 | { |
diff --git a/src/term.c b/src/term.c index a88d47f9238..5f70c7a3d4f 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -1084,7 +1084,6 @@ int *char_ins_del_vector; | |||
| 1084 | 1084 | ||
| 1085 | #define char_ins_del_cost(f) (&char_ins_del_vector[FRAME_COLS ((f))]) | 1085 | #define char_ins_del_cost(f) (&char_ins_del_vector[FRAME_COLS ((f))]) |
| 1086 | 1086 | ||
| 1087 | /* ARGSUSED */ | ||
| 1088 | static void | 1087 | static void |
| 1089 | calculate_ins_del_char_costs (struct frame *f) | 1088 | calculate_ins_del_char_costs (struct frame *f) |
| 1090 | { | 1089 | { |