Skip to content

Warnings on build #21

@gkorland

Description

@gkorland
libmr_commands.c: In function ‘check_and_reply_on_error’:
libmr_commands.c:20:13: warning: format not a string literal and no format arguments [-Wformat-security]
   20 |             RedisModule_Log(rctx, "verbose", MR_ExecutionCtxGetError(eCtx, i));
      |             ^~~~~~~~~~~~~~~
rdb.c: In function ‘series_rdb_load’:
rdb.c:120:30: warning: ‘totalSamples’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  120 |         series->totalSamples = totalSamples;
      |         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
rdb.c:124:31: warning: ‘lastTimestamp’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  124 |         series->lastTimestamp = lastTimestamp;
      |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
rdb.c:125:27: warning: ‘lastValue’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  125 |         series->lastValue = lastValue;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions