]> git.tue.mpg.de Git - paraslash.git/commit
play: Avoid gcc warning when compiling without readline.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 28 Sep 2021 20:05:45 +0000 (22:05 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 29 Sep 2021 17:03:37 +0000 (19:03 +0200)
commit43614711df496ca48e368e6e74c9d2abb264ce5d
tree180c62a768907e6e62eb59ebc68e43f9e8d05402
parenta16741dcf32b9ed20ca572d6353c3f1b9212a464
play: Avoid gcc warning when compiling without readline.

The EXPORT_PLAY_CMD_HANDLER() macro is only used when READLINE support
is enabled, which leads to

play.c:112: warning: macro "EXPORT_PLAY_CMD_HANDLER" is not used [-Wunused-macros]

Define the macro only when HAVE_READLINE is defined by moving down
the definition to the first user, com_quit().
play.c