From dba7455e76f87abe81cc9e4e9b1f979c1da02846 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 29 Jul 2018 15:23:51 -0600 Subject: Remove old lint code This removes dead code that, according to the comments, existed to placate lint. I don't think this has been relevant in a long time, and certainly not since gdb switched to C++. Tested by rebuilding. ChangeLog 2018-07-30 Tom Tromey * cli/cli-decode.c (lookup_cmd): Remove lint code. * value.c (unpack_long): Remove lint code. * valops.c (value_ind): Remove lint code. * valarith.c (value_x_binop, value_x_unop, value_equal) (value_pos): Remove lint code. --- gdb/value.c | 1 - 1 file changed, 1 deletion(-) (limited to 'gdb/value.c') diff --git a/gdb/value.c b/gdb/value.c index af635ba..b0f22f1 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -2777,7 +2777,6 @@ unpack_long (struct type *type, const gdb_byte *valaddr) default: error (_("Value can't be converted to integer.")); } - return 0; /* Placate lint. */ } /* Unpack raw data (copied from debugee, target byte order) at VALADDR -- cgit v1.1