fuchsia: Fix build

This fixes some Fuchsia-specific build errors and removed
warnings (which are strict errors in Fuchsia build configuration).

Test: fx build
Change-Id: If3fea8dc2bce8a9395b4224b7188c9bc7e3d059a
diff --git a/system/vulkan_enc/ResourceTracker.cpp b/system/vulkan_enc/ResourceTracker.cpp
index 023cca1..2b4096e 100644
--- a/system/vulkan_enc/ResourceTracker.cpp
+++ b/system/vulkan_enc/ResourceTracker.cpp
@@ -3221,13 +3221,13 @@
             !importBufferCollectionInfoPtr &&
             !importVmoInfoPtr;
 
-#if defined(VK_USE_PLATFORM_ANDROID_KHR) || defined(__linux__)
         const VkPhysicalDeviceMemoryProperties& physicalDeviceMemoryProps
             = getPhysicalDeviceMemoryProperties(context, device, VK_NULL_HANDLE);
 
         const bool requestedMemoryIsHostVisible =
             isHostVisible(&physicalDeviceMemoryProps, pAllocateInfo->memoryTypeIndex);
 
+#if defined(VK_USE_PLATFORM_ANDROID_KHR) || defined(__linux__)
         shouldPassThroughDedicatedAllocInfo &= !requestedMemoryIsHostVisible;
 
         if (!exportAllocateInfoPtr &&