Explorar o código

Simplified "-fix FTBFS"

mhd_assert()s turn to no-op on non-debug builds
Evgeny Grin (Karlson2k) hai 1 ano
pai
achega
4daa9505ba
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  1. 0 4
      src/mhd2/auth_digest.c

+ 0 - 4
src/mhd2/auth_digest.c

@@ -1718,9 +1718,7 @@ digest_update (struct DigestAlgorithm *restrict da,
 {
   mhd_assert (! da->uninitialised);
   mhd_assert (da->algo_selected);
-#ifdef _DEBUG
   mhd_assert (da->ready_for_hashing);
-#endif
   switch (da->algo)
   {
   case MHD_DIGEST_BASE_ALGO_MD5:
@@ -1837,9 +1835,7 @@ digest_calc_hash (struct DigestAlgorithm *da,
 {
   mhd_assert (! da->uninitialised);
   mhd_assert (da->algo_selected);
-#ifdef _DEBUG
   mhd_assert (da->ready_for_hashing);
-#endif
   switch (da->algo)
   {
   case MHD_DIGEST_BASE_ALGO_MD5: