You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling sortidx.c some warnings are being displayed.
The executable hangs, no output is displayed...
$ make
gcc -O2 sortidx.c -o sortidx
sortidx.c: In function ‘main’:
sortidx.c:69:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int64_t’ [-Wformat=]
printf("Invalid buffer size (%d).\n", bufsize);
^
sortidx.c:88:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int64_t’ [-Wformat=]
printf("Cannot allocate buffer (%d bytes).\n", bufsize);
^
sortidx.c: In function ‘freadIndexEntryAt’:
sortidx.c:325:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(out->hash, sizeof(unsigned char), INDEX_HASH_WIDTH, file);
^
sortidx.c:326:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(out->position, sizeof(unsigned char), INDEX_POSITION_WIDTH, file);
The text was updated successfully, but these errors were encountered:
Sorry this is shitty code. 50b0eca fixes the format string issue.
If you're sorting a big index, it will appear to hang while it's sorting (possibly for days or weeks if it's REALLY big). Giving it more memory with -r helps bring more of the sort into RAM and speeds it up a lot. If it hangs on small files that's definitely a problem.
When compiling sortidx.c some warnings are being displayed.
The executable hangs, no output is displayed...
The text was updated successfully, but these errors were encountered: