mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 17:43:55 +00:00
trivial: Never compare a string against zero to avoid warnings
This commit is contained in:
parent
79acb58c7e
commit
b3dca14e90
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user