aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2019-09-16 14:04:04 -0700
committerPaul Eggert2019-09-16 14:05:03 -0700
commit2c2f0eb9fcdfb644c106679999501b9c7edf51e2 (patch)
tree427a67f412721cb232fcc9e89df4d3b32a4d47ec
parent57ac6523af76efe6f6767c5480b2832cdd3adc4d (diff)
downloademacs-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.c1
-rw-r--r--src/cm.c1
-rw-r--r--src/emacs.c1
-rw-r--r--src/eval.c9
-rw-r--r--src/fns.c3
-rw-r--r--src/term.c1
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. */
36static Lisp_Object callint_message; 36static Lisp_Object callint_message;
37 37
38/* ARGSUSED */
39DEFUN ("interactive", Finteractive, Sinteractive, 0, UNEVALLED, 0, 38DEFUN ("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.
41For example, write 40For example, write
diff --git a/src/cm.c b/src/cm.c
index e09216a854b..7947d3565c5 100644
--- a/src/cm.c
+++ b/src/cm.c
@@ -30,7 +30,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
30 30
31int cost; /* sums up costs */ 31int cost; /* sums up costs */
32 32
33/* ARGSUSED */
34int 33int
35evalcost (int c) 34evalcost (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 */
927int 926int
928main (int argc, char **argv) 927main (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 */
1894void 1893void
1895error (const char *m, ...) 1894error (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 */
2653Lisp_Object 2651Lisp_Object
2654call1 (Lisp_Object fn, Lisp_Object arg1) 2652call1 (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 */
2661Lisp_Object 2658Lisp_Object
2662call2 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2) 2659call2 (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 */
2669Lisp_Object 2665Lisp_Object
2670call3 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3) 2666call3 (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 */
2677Lisp_Object 2672Lisp_Object
2678call4 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, 2673call4 (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 */
2686Lisp_Object 2680Lisp_Object
2687call5 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, 2681call5 (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 */
2695Lisp_Object 2688Lisp_Object
2696call6 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, 2689call6 (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 */
2704Lisp_Object 2696Lisp_Object
2705call7 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, 2697call7 (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 */
2714Lisp_Object 2705Lisp_Object
2715call8 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, 2706call8 (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,
diff --git a/src/fns.c b/src/fns.c
index df921e28f3b..f45c729cfaf 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -532,14 +532,12 @@ Do NOT use this function to compare file names for equality. */)
532static Lisp_Object concat (ptrdiff_t nargs, Lisp_Object *args, 532static 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 */
536Lisp_Object 535Lisp_Object
537concat2 (Lisp_Object s1, Lisp_Object s2) 536concat2 (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 */
543Lisp_Object 541Lisp_Object
544concat3 (Lisp_Object s1, Lisp_Object s2, Lisp_Object s3) 542concat3 (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 */
2581Lisp_Object 2578Lisp_Object
2582nconc2 (Lisp_Object s1, Lisp_Object s2) 2579nconc2 (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 */
1088static void 1087static void
1089calculate_ins_del_char_costs (struct frame *f) 1088calculate_ins_del_char_costs (struct frame *f)
1090{ 1089{