Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -Ic:\libusb\include -Og -g -std=gnu99 -g3 -MD -I. -Iinclude -Iplatfor
- ms/common -Iplatforms/stlinkv2 -DLIBFTDI -DSTLINKV2 -DJTAG_HL -I ./target -Wno-cast-function-type -c command.c -o command.o
- In file included from command.c:31:0:
- include/version.h:1:1: error: expected identifier or '(' before string constant
- "#define FIRMWARE_VERSION \"`git describe --always --dirty`\""
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- command.c:41:2: error: unknown type name 'cmd_handler'
- cmd_handler handler;
- ^~~~~~~~~~~
- command.c:67:15: error: 'cmd_handler' undeclared here (not in a function); did you mean 'cmd_hard_srst'?
- {"version", (cmd_handler)cmd_version, "Display firmware version info"},
- ^~~~~~~~~~~
- cmd_hard_srst
- command.c:67:27: error: expected '}' before 'cmd_version'
- {"version", (cmd_handler)cmd_version, "Display firmware version info"},
- ^~~~~~~~~~~
- command.c:67:27: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
- command.c:41:14: note: 'handler' declared here
- cmd_handler handler;
- ^~~~~~~
- command.c:68:24: error: expected '}' before 'cmd_help'
- {"help", (cmd_handler)cmd_help, "Display help for monitor commands"},
- ^~~~~~~~
- command.c:68:24: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
- command.c:41:14: note: 'handler' declared here
- cmd_handler handler;
- ^~~~~~~
- command.c:69:29: error: expected '}' before 'cmd_jtag_scan'
- {"jtag_scan", (cmd_handler)cmd_jtag_scan, "Scan JTAG chain for devices" },
- ^~~~~~~~~~~~~
- command.c:69:29: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
- command.c:41:14: note: 'handler' declared here
- cmd_handler handler;
- ^~~~~~~
- command.c:70:29: error: expected '}' before 'cmd_swdp_scan'
- {"swdp_scan", (cmd_handler)cmd_swdp_scan, "Scan SW-DP for devices" },
- ^~~~~~~~~~~~~
- command.c:70:29: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
- command.c:41:14: note: 'handler' declared here
- cmd_handler handler;
- ^~~~~~~
- command.c:71:27: error: expected '}' before 'cmd_targets'
- {"targets", (cmd_handler)cmd_targets, "Display list of available targets" },
- ^~~~~~~~~~~
- command.c:71:27: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
- command.c:41:14: note: 'handler' declared here
- cmd_handler handler;
- ^~~~~~~
- command.c:72:25: error: expected '}' before 'cmd_morse'
- {"morse", (cmd_handler)cmd_morse, "Display morse error message" },
- ^~~~~~~~~
- command.c:72:25: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
- command.c:41:14: note: 'handler' declared here
- cmd_handler handler;
- ^~~~~~~
- command.c:73:32: error: expected '}' before 'cmd_halt_timeout'
- {"halt_timeout", (cmd_handler)cmd_halt_timeout, "Timeout (ms) to wait until Cortex-M is halted: (Default 2000)" },
- ^~~~~~~~~~~~~~~~
- command.c:73:32: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
- command.c:41:14: note: 'handler' declared here
- cmd_handler handler;
- ^~~~~~~
- command.c:74:32: error: expected '}' before 'cmd_connect_srst'
- {"connect_srst", (cmd_handler)cmd_connect_srst, "Configure connect under SRST: (enable|disable)" },
- ^~~~~~~~~~~~~~~~
- command.c:74:32: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
- command.c:41:14: note: 'handler' declared here
- cmd_handler handler;
- ^~~~~~~
- command.c:75:29: error: expected '}' before 'cmd_hard_srst'
- {"hard_srst", (cmd_handler)cmd_hard_srst, "Force a pulse on the hard SRST line - disconnects target" },
- ^~~~~~~~~~~~~
- command.c:75:29: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
- command.c:41:14: note: 'handler' declared here
- cmd_handler handler;
- ^~~~~~~
- command.c:83:29: error: expected '}' before 'cmd_debug_bmp'
- {"debug_bmp", (cmd_handler)cmd_debug_bmp, "Output BMP \"debug\" strings to the second vcom: (enable|disable)"},
- ^~~~~~~~~~~~~
- command.c:83:29: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
- command.c:41:14: note: 'handler' declared here
- cmd_handler handler;
- ^~~~~~~
- command.c:85:9: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
- {NULL, NULL, NULL}
- ^~~~
- command.c:85:9: note: (near initialization for 'cmd_list[10].handler')
- command.c: In function 'command_process':
- command.c:116:12: error: called object is not a function or function pointer
- return !c->handler(t, argc, argv);
- ^
- command.c: In function 'cmd_version':
- command.c:127:42: error: expected ')' before 'FIRMWARE_VERSION'
- gdb_outf("Black Magic Probe (Firmware " FIRMWARE_VERSION ") (Hardware Version %d)\n", platform_hwversion());
- ^~~~~~~~~~~~~~~~
- At top level:
- command.c:313:13: error: 'cmd_debug_bmp' defined but not used [-Werror=unused-function]
- static bool cmd_debug_bmp(target *t, int argc, const char **argv)
- ^~~~~~~~~~~~~
- command.c:271:13: error: 'cmd_hard_srst' defined but not used [-Werror=unused-function]
- static bool cmd_hard_srst(void)
- ^~~~~~~~~~~~~
- command.c:261:13: error: 'cmd_halt_timeout' defined but not used [-Werror=unused-function]
- static bool cmd_halt_timeout(target *t, int argc, const char **argv)
- ^~~~~~~~~~~~~~~~
- command.c:250:13: error: 'cmd_connect_srst' defined but not used [-Werror=unused-function]
- static bool cmd_connect_srst(target *t, int argc, const char **argv)
- ^~~~~~~~~~~~~~~~
- command.c:243:6: error: 'cmd_morse' defined but not used [-Werror=unused-function]
- bool cmd_morse(void)
- ^~~~~~~~~
- command.c:192:6: error: 'cmd_swdp_scan' defined but not used [-Werror=unused-function]
- bool cmd_swdp_scan(void)
- ^~~~~~~~~~~~~
- command.c:151:13: error: 'cmd_jtag_scan' defined but not used [-Werror=unused-function]
- static bool cmd_jtag_scan(target *t, int argc, char **argv)
- ^~~~~~~~~~~~~
- command.c:135:6: error: 'cmd_help' defined but not used [-Werror=unused-function]
- bool cmd_help(target *t)
- ^~~~~~~~
- command.c:125:6: error: 'cmd_version' defined but not used [-Werror=unused-function]
- bool cmd_version(void)
- ^~~~~~~~~~~
- cc1.exe: error: unrecognized command line option '-Wno-cast-function-type' [-Werror]
- cc1.exe: error: unrecognized command line option '-Wno-cast-function-type' [-Werror]
- cc1.exe: all warnings being treated as errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement