record-full: Remove unused function netorder16
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 26 Jun 2017 13:08:36 +0000 (15:08 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 26 Jun 2017 14:51:17 +0000 (16:51 +0200)
commit873c08142c4c377d2d3ed0b1b1b9e262ddc06c61
tree2c71a7bf8047dce87c32c72bca4cafffe62dcc30
parent8b5a7a6e8ceb34f8e82aa361ee91ec25e0049774
record-full: Remove unused function netorder16

clang shows this warning:

  /home/emaisin/src/binutils-gdb/gdb/record-full.c:2344:1: error: unused function 'netorder16' [-Werror,-Wunused-function]
  netorder16 (uint16_t input)
  ^

Remove this function, which, AFAIK, has never been used.  Note that GCC
doesn't warn about this, because the function is marked as inline.
According to gcc's man page, it should ideed not warn:

  -Wunused-function
    Warn whenever a static function is declared but not defined or a non-inline static function is unused.  This warning is enabled by -Wall.

So it's probably not a GCC bug that it doesn't find this unused function, but a
different definition of "unused".

gdb/ChangeLog:

* record-full.c (netorder16): Remove.
gdb/ChangeLog
gdb/record-full.c
This page took 0.026258 seconds and 4 git commands to generate.