Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created November 3, 2018 15:23
Show Gist options
  • Save MasterDuke17/21f2df5e9f5e352f86180c32596f2ce5 to your computer and use it in GitHub Desktop.
Save MasterDuke17/21f2df5e9f5e352f86180c32596f2ce5 to your computer and use it in GitHub Desktop.
src/core/validation.c: In function ‘validate_reg_operand’:
src/core/validation.c:18:23: warning: unknown conversion type character ‘P’ in format [-Wformat=]
#define MSG(val, msg) "Bytecode validation error at offset %" PRIu32 \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/validation.c:18:23: note: in definition of macro ‘MSG’
#define MSG(val, msg) "Bytecode validation error at offset %" PRIu32 \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/validation.c:295:43: note: format string is defined here
fail(val, MSG(val, "operand type %PRIu32 does not match register type %PRIu32 for op %s in frame %s"),
^
src/core/validation.c:18:23: warning: unknown conversion type character ‘P’ in format [-Wformat=]
#define MSG(val, msg) "Bytecode validation error at offset %" PRIu32 \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/validation.c:18:23: note: in definition of macro ‘MSG’
#define MSG(val, msg) "Bytecode validation error at offset %" PRIu32 \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/validation.c:295:80: note: format string is defined here
fail(val, MSG(val, "operand type %PRIu32 does not match register type %PRIu32 for op %s in frame %s"),
^
src/core/validation.c:18:23: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘MVMuint32’ {aka ‘unsigned int’} [-Wformat=]
#define MSG(val, msg) "Bytecode validation error at offset %" PRIu32 \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/validation.c:18:23: note: in definition of macro ‘MSG’
#define MSG(val, msg) "Bytecode validation error at offset %" PRIu32 \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/validation.c:295:95: note: format string is defined here
fail(val, MSG(val, "operand type %PRIu32 does not match register type %PRIu32 for op %s in frame %s"),
~^
%d
src/core/validation.c:18:23: warning: format ‘%s’ expects argument of type ‘char *’, but argument 6 has type ‘MVMuint32’ {aka ‘unsigned int’} [-Wformat=]
#define MSG(val, msg) "Bytecode validation error at offset %" PRIu32 \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/validation.c:18:23: note: in definition of macro ‘MSG’
#define MSG(val, msg) "Bytecode validation error at offset %" PRIu32 \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/validation.c:295:107: note: format string is defined here
fail(val, MSG(val, "operand type %PRIu32 does not match register type %PRIu32 for op %s in frame %s"),
~^
%d
src/core/validation.c:18:23: warning: too many arguments for format [-Wformat-extra-args]
#define MSG(val, msg) "Bytecode validation error at offset %" PRIu32 \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/validation.c:18:23: note: in definition of macro ‘MSG’
#define MSG(val, msg) "Bytecode validation error at offset %" PRIu32 \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment