Commit a52b05bb authored by Hanspeter Portner's avatar Hanspeter Portner

fix compiler warnings.

parent c0bca18d
......@@ -174,17 +174,17 @@ run(LV2_Handle instance, uint32_t nsamples)
else if(atom->type == through->forge.String)
{
lv2_log_trace(&handle->logger, "%4"PRIi64", string, %s\n", ev->time.frames,
LV2_ATOM_BODY_CONST(atom));
(const char *)LV2_ATOM_BODY_CONST(atom));
}
else if(atom->type == through->forge.URI)
{
lv2_log_trace(&handle->logger, "%4"PRIi64", uri , %s\n", ev->time.frames,
LV2_ATOM_BODY_CONST(atom));
(const char *)LV2_ATOM_BODY_CONST(atom));
}
else if(atom->type == through->forge.Path)
{
lv2_log_trace(&handle->logger, "%4"PRIi64", path , %s\n", ev->time.frames,
LV2_ATOM_BODY_CONST(atom));
(const char *)LV2_ATOM_BODY_CONST(atom));
}
//FIXME more types
else
......
......@@ -232,8 +232,6 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat
if(is_primitive)
{
const struct nk_color col = nk_rgb(0xff, 0xff, 0xff);
nk_layout_row_push(ctx, 0.2);
if(body->type == handle->forge.Bool)
{
......@@ -375,7 +373,6 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat
}
const nk_flags flags = NK_EDIT_EDITOR;
char *str = nk_str_get(&handle->editor.string);
int len = nk_str_len(&handle->editor.string);
if(len > 0) //FIXME
......
......@@ -19,6 +19,8 @@
#define ENCODER_H
#include "lv2/lv2plug.in/ns/extensions/ui/ui.h"
#define NK_PUGL_API
#include "nk_pugl/nk_pugl.h"
extern const struct nk_color cwhite;
......
......@@ -131,7 +131,7 @@ ttl_lex(void *data, const char *utf8, int len)
int n_tokens = 0;
const char *base = encget_text(scanner);
int offset0 = 0;
int offset0 = 0;
struct nk_color col0 = {0xff, 0xff, 0xff, 0xff};
for(int tok=enclex(scanner); tok; tok=enclex(scanner))
......@@ -203,5 +203,10 @@ ttl_lex(void *data, const char *utf8, int len)
enc_delete_buffer(buf, scanner);
enclex_destroy(scanner);
// to please compiler
(void)offset0;
(void)input;
(void)yyunput;
return tokens;
}
......@@ -18,6 +18,7 @@
#ifndef _SHERLOCK_NK_H
#define _SHERLOCK_NK_H
#define NK_PUGL_API
#include "nk_pugl/nk_pugl.h"
#include <osc.lv2/osc.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment