Fix some compiler warnings.
This commit is contained in:
parent
300007323e
commit
719c5a934c
|
@ -1038,6 +1038,8 @@ static int receive_data(int fd, int revents, void *session_data)
|
||||||
|
|
||||||
bufsz = sigma_read_dram(sigma->state.chunks_downloaded,
|
bufsz = sigma_read_dram(sigma->state.chunks_downloaded,
|
||||||
newchunks, buf, sigma);
|
newchunks, buf, sigma);
|
||||||
|
/* TODO: Check bufsz. For now, just avoid compiler warnings. */
|
||||||
|
(void)bufsz;
|
||||||
|
|
||||||
/* Find first ts. */
|
/* Find first ts. */
|
||||||
if (sigma->state.chunks_downloaded == 0) {
|
if (sigma->state.chunks_downloaded == 0) {
|
||||||
|
|
|
@ -31,9 +31,8 @@
|
||||||
|
|
||||||
static int format_match(const char *filename)
|
static int format_match(const char *filename)
|
||||||
{
|
{
|
||||||
|
|
||||||
/* suppress compiler warning */
|
/* suppress compiler warning */
|
||||||
filename = NULL;
|
(void)filename;
|
||||||
|
|
||||||
/* this module will handle anything you throw at it */
|
/* this module will handle anything you throw at it */
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
@ -126,7 +126,6 @@ static int event(struct sr_output *o, int event_type, char **data_out,
|
||||||
uint64_t *length_out)
|
uint64_t *length_out)
|
||||||
{
|
{
|
||||||
struct context *ctx;
|
struct context *ctx;
|
||||||
char *outbuf;
|
|
||||||
|
|
||||||
if (!o) {
|
if (!o) {
|
||||||
sr_err("csv out: %s: o was NULL", __func__);
|
sr_err("csv out: %s: o was NULL", __func__);
|
||||||
|
|
Loading…
Reference in New Issue