This switch is exhaustive. This change squashes the following warnings:
draw.c:341:9: warning: switch missing default case [-Wswitch-default]
341 | switch (o->op.u.text.align)
| ^~~~~~
draw.c:374:9: warning: ‘x’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
374 | glCompDrawText3D(o->font,x,y,view->Topview->global_z…
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~…
for now keep them at the bottom
*/
#include "draw.h"
+#include <cgraph/unreachable.h>
#include <common/colorprocs.h>
#include <common/types.h>
#include <common/utils.h>
case xd_right:
x=o->op.u.text.x - o->op.u.text.width;
break;
-
+ default:
+ UNREACHABLE();
}
y=o->op.u.text.y;
if (!o->font)