[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH] Suppress warning 4715


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Fri, 7 Jun 2019 09:43:01 +0100
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=owen.smith@xxxxxxxxxx; spf=SoftFail smtp.mailfrom=owen.smith@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Owen Smith <owen.smith@xxxxxxxxxx>
  • Delivery-date: Fri, 07 Jun 2019 08:43:38 +0000
  • Ironport-sdr: OdY99aWhXGNjCmtHn9YjshMlOu9v3PCqLnLDH5lcLMKYQiBqkvnTjx1uaO+x5rLgav0Zfbeqcu ikOE9xaRhQGvd9sEl/62oABN7VJuhZPN1YuuL3E7PujYm2u8YHfZh1JlXikcQgvdV+jQgxgmcn wJbyby45R0WWPv6qnCm0flRLX5okoH3DRHkdjFS1WIfj0PfzId+B7G5USl/6ClA2lgMnZCbFi/ a2Q7s7iG9KF7K9eTN9fl+JGHGm0jE3ZAtrmD20fWw0p1sBCMtEwOF8UmifeB/BIJH3+Lx4NrUr oks=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

__CacheMaskScan can trigger a compiler warning with some compilers due
to not all return paths returning a value. The path that does not return
a value calls KeBugCheckEx, which would leave unreachable code. Disable
the specific warning for this function.

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
 src/xenbus/cache.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xenbus/cache.c b/src/xenbus/cache.c
index 7daf8da..9713df3 100644
--- a/src/xenbus/cache.c
+++ b/src/xenbus/cache.c
@@ -348,6 +348,7 @@ CacheDestroySlab(
     MmFreeContiguousMemory(Slab);
 }
 
+#pragma warning(disable: 4715)
 static FORCEINLINE ULONG
 __CacheMaskScan(
     IN  ULONG   *Mask,
@@ -374,6 +375,7 @@ __CacheMaskScan(
 
     BUG("CACHE SCAN FAILED");
 }
+#pragma warning(default: 4715)
 
 static FORCEINLINE VOID
 __CacheMaskSet(
-- 
2.16.2.windows.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.