]> jfr.im git - irc/atheme/libmowgli-2.git/commit
container/dictionary.[ch]: fix numerous small issues
authorAaron Jones <redacted>
Fri, 18 Jan 2019 03:16:40 +0000 (03:16 +0000)
committerAaron Jones <redacted>
Fri, 18 Jan 2019 03:19:29 +0000 (03:19 +0000)
commit25f6643d5935725ee3444005cce457f8ee8039eb
treec4e1e7092d6da2be9ba792bdc46d5b6b6708d916
parentd0e259a95c71ef47a1669cf636c3c4140120d28e
container/dictionary.[ch]: fix numerous small issues

The 4th diagnostic in particular is interesting because it is
located in unreachable code, so simply remove the entire
conditional block which is always false.

The 5th diagnostic is useful: it illuminated a missing function
declaration in the corresponding header, which was added.

Fixes compiler diagnostics:

dictionary.c:236:1: warning: no previous prototype for function
    'mowgli_dictionary_retune' [-Wmissing-prototypes]

dictionary.c:335:1: warning: no previous prototype for function
    'mowgli_dictionary_link' [-Wmissing-prototypes]

dictionary.c:414:1: warning: no previous prototype for function
    'mowgli_dictionary_unlink_root' [-Wmissing-prototypes]

dictionary.c:758:78: warning: cast from 'const void *' to 'void *'
    drops const qualifier [-Wcast-qual]

dictionary.c:846:1: warning: no previous prototype for function
    'mowgli_dictionary_size' [-Wmissing-prototypes]
src/libmowgli/container/dictionary.c
src/libmowgli/container/dictionary.h