Snippets for argp-standalone 1.5.0 from Alpine armhf
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-armhf/main/argp-standalone/argp-standalone-1.5.0-r1.log.
-
argp-help.c:90:31: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 90 | return m ? dgettext(d, m) : NULL; | ^ -
argp-help.c:88:27: warning: unused parameter 'd' [-Wunused-parameter] 88 | dgettext_safe(const char* d, const char* m) | ~~~~~~~~~~~~^ -
argp-test.c:35:8: warning: missing initializer for field 'group' of 'struct argp_option' [-Wmissing-field-initializers] 35 | struct argp_option sub_options[] = { { "subopt1", 's', 0, 0, "Nested option 1" }, | ^~~~~~~~~~~ -
argp-test.c:36:38: warning: missing initializer for field 'group' of 'struct argp_option' [-Wmissing-field-initializers] 36 | { "subopt2", 'S', 0, 0, "Nested option 2" }, | ^ -
argp-test.c:39:38: warning: missing initializer for field 'group' of 'struct argp_option' [-Wmissing-field-initializers] 39 | { "subopt3", 'p', 0, 0, "Nested option 3" }, | ^ -
argp-test.c:49:54: warning: unused parameter 'state' [-Wunused-parameter] 49 | sub_parse_opt(int key, char* arg, struct argp_state* state) | ~~~~~~~~~~~~~~~~~~~^~~~~ -
argp-test.c:74:50: warning: unused parameter 'input' [-Wunused-parameter] 74 | sub_help_filter(int key, const char* text, void* input) | ~~~~~~^~~~~ -
argp-test.c:84:5: warning: missing initializer for field 'argp_domain' of 'struct argp' [-Wmissing-field-initializers] 84 | = { sub_options, sub_parse_opt, sub_args_doc, sub_doc, 0, sub_help_filter }; | ^ -
argp-test.c:97:5: warning: missing initializer for field 'group' of 'struct argp_option' [-Wmissing-field-initializers] 97 | = { { "pid", 'p', "PID", 0, "List the process PID" }, | ^ -
argp-test.c:98:9: warning: missing initializer for field 'group' of 'struct argp_option' [-Wmissing-field-initializers] 98 | { "pgrp", OPT_PGRP, "PGRP", 0, "List processes in the process group PGRP" }, | ^ -
argp-test.c:99:9: warning: missing initializer for field 'group' of 'struct argp_option' [-Wmissing-field-initializers] 99 | { "no-parent", 'P', 0, 0, "Include processes without parents" }, | ^ -
argp-test.c:100:9: warning: missing initializer for field 'doc' of 'struct argp_option' [-Wmissing-field-initializers] 100 | { 0, 'x', 0, OPTION_ALIAS }, | ^ -
argp-test.c:108:11: warning: missing initializer for field 'group' of 'struct argp_option' [-Wmissing-field-initializers] 108 | " removed from the output entirely)" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
argp-test.c:109:9: warning: missing initializer for field 'group' of 'struct argp_option' [-Wmissing-field-initializers] 109 | { "reverse", 'r', 0, 0, "Reverse the order of any sort" }, | ^ -
argp-test.c:110:9: warning: missing initializer for field 'doc' of 'struct argp_option' [-Wmissing-field-initializers] 110 | { "gratuitously-long-reverse-option", 0, 0, OPTION_ALIAS }, | ^ -
argp-test.c:117:11: warning: missing initializer for field 'group' of 'struct argp_option' [-Wmissing-field-initializers] 117 | " the current process)" }, | ^~~~~~~~~~~~~~~~~~~~~~~ -
argp-test.c:119:9: warning: missing initializer for field 'group' of 'struct argp_option' [-Wmissing-field-initializers] 119 | { 0, 0, 0, 0, "Here are some more options:" }, | ^ -
argp-test.c:120:9: warning: missing initializer for field 'group' of 'struct argp_option' [-Wmissing-field-initializers] 120 | { "foonly", 'f', "ZOT", OPTION_ARG_OPTIONAL, "Glork a foonly" }, | ^ -
argp-test.c:121:9: warning: missing initializer for field 'group' of 'struct argp_option' [-Wmissing-field-initializers] 121 | { "zaza", 'z', 0, 0, "Snit a zar" }, | ^ -
argp-test.c:207:15: warning: missing initializer for field 'flags' of 'struct argp_child' [-Wmissing-field-initializers] 207 | static struct argp_child argp_children[] = { { &sub_argp }, { 0 } }; | ^~~~~~~~~~ -
argp-test.c:208:15: warning: missing initializer for field 'argp_domain' of 'struct argp' [-Wmissing-field-initializers] 208 | static struct argp argp = { options, parse_opt, args_doc, doc, argp_children, help_filter }; | ^~~~ -
argp-help.c:614:39: warning: unused parameter 'real' [-Wunused-parameter] 614 | const struct argp_option* real, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ -
argp-help.c:615:25: warning: unused parameter 'domain' [-Wunused-parameter] 615 | const char* domain, | ~~~~~~~~~~~~^~~~~~ -
argp-help.c:616:19: warning: unused parameter 'cookie' [-Wunused-parameter] 616 | void* cookie) | ~~~~~~^~~~~~ -
argp-help.c:953:17: warning: unused parameter 'domain' [-Wunused-parameter] 953 | const char* domain, | ~~~~~~~~~~~~^~~~~~ -
argp-help.c:1251:35: warning: unused parameter 'domain' [-Wunused-parameter] 1251 | const char* domain, | ~~~~~~~~~~~~^~~~~~ -
argp-help.c:1265:36: warning: unused parameter 'domain' [-Wunused-parameter] 1265 | const char* domain, | ~~~~~~~~~~~~^~~~~~ -
argp-help.c:1298:28: warning: unused parameter 'domain' [-Wunused-parameter] 1298 | const char* domain, | ~~~~~~~~~~~~^~~~~~ -
argp-help.c:1762:10: warning: no previous prototype for '__argp_error_internal' [-Wmissing-prototypes] 1762 | void __argp_error_internal(const struct argp_state* state, | ^~~~~~~~~~~~~~~~~~~~~ -
argp-help.c:1765:45: warning: unused parameter 'mode_flags' [-Wunused-parameter] 1765 | unsigned int mode_flags) | ~~~~~~~~~~~~~^~~~~~~~~~ -
argp-help.c:1825:10: warning: no previous prototype for '__argp_failure_internal' [-Wmissing-prototypes] 1825 | void __argp_failure_internal(const struct argp_state* state, | ^~~~~~~~~~~~~~~~~~~~~~~ -
argp-help.c:1870:22: warning: unused variable 'buf' [-Wunused-variable] 1870 | char buf[200]; | ^~~ -
argp-help.c:1830:47: warning: unused parameter 'mode_flags' [-Wunused-parameter] 1830 | unsigned int mode_flags) | ~~~~~~~~~~~~~^~~~~~~~~~ -
ex4.c:102:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 102 | argp_usage(state); | ^~~~~~~~~~~~~~~~~