trivial: Never compare a string against zero to avoid warnings

This commit is contained in:
Richard Hughes 2017-07-06 10:00:54 +01:00
parent 79acb58c7e
commit b3dca14e90
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,6 @@ conf.set('FWUPD_MICRO_VERSION', fwupd_micro_version)
conf.set_quoted('PACKAGE_VERSION', fwupd_version)
archiver = find_program('git', required : false)
conf.set('FWUPD_GIT_DESCRIBE', 0)
if archiver.found()
result = run_command('git', 'describe')
if result.returncode() == 0

View File

@ -1796,8 +1796,9 @@ main (int argc, char *argv[])
}
g_print ("daemon version:\t%s\n",
fwupd_client_get_daemon_version (priv->client));
if (FWUPD_GIT_DESCRIBE != 0)
g_print ("checkout info:\t%s\n", FWUPD_GIT_DESCRIBE);
#ifdef FWUPD_GIT_DESCRIBE
g_print ("checkout info:\t%s\n", FWUPD_GIT_DESCRIBE);
#endif
return EXIT_SUCCESS;
}