Print this page
10099 libfakekernel vpanic() should cast away assfail()

@@ -21,10 +21,11 @@
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2012 by Delphix. All rights reserved.
  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  * Copyright 2017 RackTop Systems.
+ * Copyright (c) 2018, Joyent, Inc.
  */
 
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/varargs.h>

@@ -113,11 +114,11 @@
         va_copy(tmpargs, adx);
         fakekernel_cprintf(fmt, tmpargs, SL_FATAL, "fatal: ", "\n");
 
         /* Call libc`assfail() so that mdb ::status works */
         (void) vsnprintf(panicbuf, sizeof (panicbuf), fmt, adx);
-        assfail(panicbuf, "(panic)", 0);
+        (void) assfail(panicbuf, "(panic)", 0);
 
         abort();        /* avoid "noreturn" warnings */
 }
 
 void