mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-12 21:28:47 +00:00
common: Remove spice_abort()
There are only 2 users in spice-common, and none in spice-gtk/spice Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
31d4622687
commit
8069bf498d
@ -937,7 +937,7 @@ pixman_format_code_t spice_surface_format_to_pixman(uint32_t surface_format)
|
||||
return PIXMAN_a8r8g8b8;
|
||||
default:
|
||||
printf("Unknown surface format %d\n", surface_format);
|
||||
spice_abort();
|
||||
g_abort();
|
||||
break;
|
||||
}
|
||||
return (pixman_format_code_t)0; /* Not reached */
|
||||
@ -976,7 +976,7 @@ pixman_format_code_t spice_bitmap_format_to_pixman(int bitmap_format,
|
||||
case SPICE_BITMAP_FMT_INVALID:
|
||||
default:
|
||||
printf("Unknown bitmap format %d\n", bitmap_format);
|
||||
spice_abort();
|
||||
g_abort();
|
||||
return PIXMAN_a8r8g8b8;
|
||||
}
|
||||
}
|
||||
|
||||
@ -28,6 +28,4 @@
|
||||
#include "backtrace.h"
|
||||
#include "log.h"
|
||||
|
||||
#define spice_abort() abort()
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user