summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/test1.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/test1.c b/examples/test1.c
index 906fe5a..849a41e 100644
--- a/examples/test1.c
+++ b/examples/test1.c
@@ -4,6 +4,8 @@
#include "vt100.h"
+#define UNUSED(x) ((void)x)
+
int main(int argc, char *argv[])
{
VT100Screen *vt;
@@ -11,6 +13,9 @@ int main(int argc, char *argv[])
size_t offset = 0;
int i, j, skip;
+ UNUSED(argc);
+ UNUSED(argv);
+
vt = vt100_screen_new(24, 80);
// vt100_screen_set_window_size(vt);
@@ -36,7 +41,7 @@ int main(int argc, char *argv[])
continue;
}
struct vt100_cell *cell = &vt->grid->rows[i].cells[j];
- printf("%*s", cell->len, cell->contents);
+ printf("%*s", (int)cell->len, cell->contents);
if (cell->is_wide)
skip = 1;
}