[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH] Suppress warning 4715
__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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |