]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] fix x64 NOP, silence set but not used warning
authorEvan Hunt <each@isc.org>
Wed, 23 Mar 2016 18:53:54 +0000 (11:53 -0700)
committerEvan Hunt <each@isc.org>
Wed, 23 Mar 2016 19:34:56 +0000 (12:34 -0700)
lib/isc/rwlock.c
win32utils/Configure

index 6e290088654fa97e3b738588721a5bd58ac1aa2e..2bb605317d6e8d6d806f4edf8129d974c7ae898f 100644 (file)
@@ -659,7 +659,7 @@ isc_rwlock_lock(isc_rwlock_t *rwl, isc_rwlocktype_t type) {
 
        rwl->spins += (cnt - rwl->spins) / 8;
 
-       return (ISC_R_SUCCESS);
+       return (result);
 }
 
 isc_result_t
index 36766c911a1edb1b08dc0884eaf333c8d2b82d2c..4fb2ae07eadd5f0eb5b3a4066963c8ab48e27cdb 100644 (file)
@@ -700,8 +700,7 @@ if (($want_win32 eq "yes") && ($want_x64 eq "yes")) {
     $configvar{"BUILD_PLATFORM"} = "x64";
     $configvar{"MACHINE"} = "/machine:X64";
     $configvar{"BUILD_MACHINE"} = "/machine:X64";
-    # inline assembly not supported in x64 builds
-    #$configdefp{"ISC_PLATFORM_BUSYWAITNOP"} = "__asm { rep nop }";
+    $configdefp{"ISC_PLATFORM_BUSYWAITNOP"} = "_mm_pause()";
 }
 
 # get the version information