Commit 674f52fd authored by Howard Chu's avatar Howard Chu
Browse files

Silence some clang warnings

parent b9495245
......@@ -233,6 +233,10 @@ int main(int argc, char *argv[])
envname = argv[optind];
rc = mdb_env_create(&env);
if (rc) {
fprintf(stderr, "mdb_env_create failed, error %d %s\n", rc, mdb_strerror(rc));
return EXIT_FAILURE;
}
if (alldbs || subname) {
mdb_env_set_maxdbs(env, 2);
......
......@@ -64,8 +64,6 @@ flagbit dbflags[] = {
{ 0, NULL, 0 }
};
static const char hexc[] = "0123456789abcdef";
static void readhdr(void)
{
char *ptr;
......@@ -345,6 +343,10 @@ int main(int argc, char *argv[])
envname = argv[optind];
rc = mdb_env_create(&env);
if (rc) {
fprintf(stderr, "mdb_env_create failed, error %d %s\n", rc, mdb_strerror(rc));
return EXIT_FAILURE;
}
mdb_env_set_maxdbs(env, 2);
......
......@@ -105,6 +105,10 @@ int main(int argc, char *argv[])
envname = argv[optind];
rc = mdb_env_create(&env);
if (rc) {
fprintf(stderr, "mdb_env_create failed, error %d %s\n", rc, mdb_strerror(rc));
return EXIT_FAILURE;
}
if (alldbs || subname) {
mdb_env_set_maxdbs(env, 4);
......@@ -117,8 +121,8 @@ int main(int argc, char *argv[])
}
if (envinfo) {
rc = mdb_env_stat(env, &mst);
rc = mdb_env_info(env, &mei);
(void)mdb_env_stat(env, &mst);
(void)mdb_env_info(env, &mei);
printf("Environment Info\n");
printf(" Map address: %p\n", mei.me_mapaddr);
printf(" Map size: %"Z"u\n", mei.me_mapsize);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment