Silence some clang warnings

vl32
Howard Chu 10 years ago
parent b9495245b4
commit 674f52fdb4
  1. 4
      libraries/liblmdb/mdb_dump.c
  2. 6
      libraries/liblmdb/mdb_load.c
  3. 8
      libraries/liblmdb/mdb_stat.c

@ -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);

Loading…
Cancel
Save