Analogous to the earlier change - the WAFFLE_DL is checked before we get here.
Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com> --- src/waffle/linux/linux_dl.c | 3 ++- src/waffle/linux/linux_platform.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/waffle/linux/linux_dl.c b/src/waffle/linux/linux_dl.c index 33eb69d..0858ef3 100644 --- a/src/waffle/linux/linux_dl.c +++ b/src/waffle/linux/linux_dl.c @@ -23,6 +23,7 @@ // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#include <assert.h> #include <stdbool.h> #include <stdlib.h> @@ -69,7 +70,7 @@ linux_dl_get_name(int32_t waffle_dl) return "libGLESv2.so.2"; #endif default: - wcore_error_internal("waffle_dl has bad value %#x", waffle_dl); + assert(false); return NULL; } } diff --git a/src/waffle/linux/linux_platform.c b/src/waffle/linux/linux_platform.c index 56f6fe6..92c36c1 100644 --- a/src/waffle/linux/linux_platform.c +++ b/src/waffle/linux/linux_platform.c @@ -23,6 +23,7 @@ // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#include <assert.h> #include <stdlib.h> #include "wcore_error.h" @@ -73,7 +74,7 @@ linux_platform_get_dl( case WAFFLE_DL_OPENGL_ES2: dl = &self->libgles2; break; case WAFFLE_DL_OPENGL_ES3: dl = &self->libgles2; break; default: - wcore_error_internal("waffle_dl has bad value %#x", waffle_dl); + assert(false); return NULL; } -- 2.8.0 _______________________________________________ waffle mailing list waffle@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/waffle