[GH-ISSUE #1514] Problems with Haval addition to dynamic #985

Closed
opened 2026-10-14 03:31:01 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @magnumripper on GitHub (Jul 7, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1514

Originally assigned to: @jfoug on GitHub.

OSX

dynamic_preloads.c:164:33: warning: '_Funcs_87' defined but not used [-Wunused-variable]
  static DYNAMIC_primitive_funcp _Funcs_##N##7[] = { DynamicFunc__clean_input2_kwik, DynamicFunc__append_salt2, DynamicFunc__append_input2_from_input, DynamicFunc__##H##_crypt_input2_to_output1_FINAL, NULL }; \
                                 ^
dynamic_preloads.c:1339:1: note: in expansion of macro 'DYNA_PRE_DEFINE_LARGE_HASH'
 DYNA_PRE_DEFINE_LARGE_HASH(SHA512,8,128)
 ^
dynamic_preloads.c:165:33: warning: '_Funcs_88' defined but not used [-Wunused-variable]
  static DYNAMIC_primitive_funcp _Funcs_##N##8[] = { DynamicFunc__clean_input2_kwik, DynamicFunc__##H##_crypt_input1_append_input2, DynamicFunc__append_input2_from_input2, DynamicFunc__##H##_crypt_input2_to_output1_FINAL, NULL };
                                 ^
dynamic_preloads.c:1339:1: note: in expansion of macro 'DYNA_PRE_DEFINE_LARGE_HASH'
 DYNA_PRE_DEFINE_LARGE_HASH(SHA512,8,128)
 ^
Originally created by @magnumripper on GitHub (Jul 7, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1514 Originally assigned to: @jfoug on GitHub. OSX ``` dynamic_preloads.c:164:33: warning: '_Funcs_87' defined but not used [-Wunused-variable] static DYNAMIC_primitive_funcp _Funcs_##N##7[] = { DynamicFunc__clean_input2_kwik, DynamicFunc__append_salt2, DynamicFunc__append_input2_from_input, DynamicFunc__##H##_crypt_input2_to_output1_FINAL, NULL }; \ ^ dynamic_preloads.c:1339:1: note: in expansion of macro 'DYNA_PRE_DEFINE_LARGE_HASH' DYNA_PRE_DEFINE_LARGE_HASH(SHA512,8,128) ^ dynamic_preloads.c:165:33: warning: '_Funcs_88' defined but not used [-Wunused-variable] static DYNAMIC_primitive_funcp _Funcs_##N##8[] = { DynamicFunc__clean_input2_kwik, DynamicFunc__##H##_crypt_input1_append_input2, DynamicFunc__append_input2_from_input2, DynamicFunc__##H##_crypt_input2_to_output1_FINAL, NULL }; ^ dynamic_preloads.c:1339:1: note: in expansion of macro 'DYNA_PRE_DEFINE_LARGE_HASH' DYNA_PRE_DEFINE_LARGE_HASH(SHA512,8,128) ^ ```
bsakaguchi 2026-10-14 03:31:01 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (Jul 7, 2015):

I think the warnings look a lot more alarming than is actually the case. It's just a couple of functions not yet used, right? Then I guess this will be fixed shortly and we can close this.

<!-- gh-comment-id:119376538 --> @magnumripper commented on GitHub (Jul 7, 2015): I think the warnings look a lot more alarming than is actually the case. It's just a couple of functions not yet used, right? Then I guess this will be fixed shortly and we can close this.
Author
Owner

@jfoug commented on GitHub (Jul 8, 2015):

Yes, a couple unused.

I worked hard trying to get everything working. This set of macros was NOT easy to get there. Surprisingly, that CPP in visual C is much more robust than in gcc. But I got things figured out.

In the section that lays out the array of items for the actual dynamic formats, if built for SIMD-64, the dyna-77/78 get defined out and they were not done in a macro. But the macro that drops the functions out I did use a macro for sha512. I will simply have to remove the sha512 from using the macro, or make a shorter macro skipping the last 2 function for a SIMD64 build.

<!-- gh-comment-id:119378778 --> @jfoug commented on GitHub (Jul 8, 2015): Yes, a couple unused. I worked hard trying to get everything working. This set of macros was NOT easy to get there. Surprisingly, that CPP in visual C is much more robust than in gcc. But I got things figured out. In the section that lays out the array of items for the actual dynamic formats, if built for SIMD-64, the dyna-77/78 get defined out and they were not done in a macro. But the macro that drops the functions out I did use a macro for sha512. I will simply have to remove the sha512 from using the macro, or make a shorter macro skipping the last 2 function for a SIMD64 build.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#985
No description provided.