Clang 4.0.0 fix for Bochs

Clang 4.0.0, which ac++ links against since today, throws an error in
the Bochs code.

config.cc:3480:55: error: ordered comparison between pointer and zero ('char *' and 'int')
    if (SIM->get_param_string("model", base)->getptr()>0) {
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~

Change-Id: I8404a54acd468bf71cbf29867657f9458f3a4c3f
This commit is contained in:
Horst Schirmeier
2017-08-01 17:48:39 +02:00
parent 3ad42e270c
commit 48ceeb6a14

View File

@ -3477,7 +3477,7 @@ int bx_write_atadevice_options(FILE *fp, Bit8u channel, Bit8u drive, bx_list_c *
fprintf(fp, ", biosdetect=%s", SIM->get_param_enum("biosdetect", base)->get_selected()); fprintf(fp, ", biosdetect=%s", SIM->get_param_enum("biosdetect", base)->get_selected());
if (SIM->get_param_string("model", base)->getptr()>0) { if (SIM->get_param_string("model", base)->getptr()) {
fprintf(fp, ", model=\"%s\"", SIM->get_param_string("model", base)->getptr()); fprintf(fp, ", model=\"%s\"", SIM->get_param_string("model", base)->getptr());
} }