Mail Archives: djgpp-workers/2009/09/19/17:34:33
Am Samstag, 19. September 2009 schrieb Eli Zaretskii:
[snip]
> What version of GCC is that?
gcc 4.4.1
> Can you please show the preprocessed source of
> 'add_internal_problem_command'?
# 1053 "utils.c"
static void
add_internal_problem_command (struct internal_problem *problem)
{
struct cmd_list_element **set_cmd_list;
struct cmd_list_element **show_cmd_list;
char *set_doc;
char *show_doc;
set_cmd_list = xmalloc (sizeof (*set_cmd_list));
show_cmd_list = xmalloc (sizeof (*set_cmd_list));
*set_cmd_list = 0;
*show_cmd_list = 0;
set_doc = xstrprintf (gettext ("Configure what GDB does when %s is detected."),
problem->name);
show_doc = xstrprintf (gettext ("Show what GDB does when %s is detected."),
problem->name);
add_prefix_cmd ((char*) problem->name,
class_maintenance, set_internal_problem_cmd, set_doc,
set_cmd_list,
concat ("maintenance set ", problem->name, " ", 0),
0 , &maintenance_set_cmdlist);
add_prefix_cmd ((char*) problem->name,
class_maintenance, show_internal_problem_cmd, show_doc,
show_cmd_list,
concat ("maintenance show ", problem->name, " ", 0),
0 , &maintenance_show_cmdlist);
set_doc = xstrprintf (gettext ("Set whether GDB should quit when an %s is detected"),
problem->name);
show_doc = xstrprintf (gettext ("Show whether GDB will quit when an %s is detected"),
problem->name);
add_setshow_enum_cmd ("quit", class_maintenance,
internal_problem_modes,
&problem->should_quit,
set_doc,
show_doc,
0,
0,
0,
set_cmd_list,
show_cmd_list);
xfree (set_doc);
xfree (show_doc);
set_doc = xstrprintf (gettext ("Set whether GDB should create a core file of GDB when %s is detected"),
problem->name);
show_doc = xstrprintf (gettext ("Show whether GDB will create a core file of GDB when %s is detected"),
problem->name);
add_setshow_enum_cmd ("corefile", class_maintenance,
internal_problem_modes,
&problem->should_dump_core,
set_doc,
show_doc,
0,
0,
0,
set_cmd_list,
show_cmd_list);
xfree (set_doc);
xfree (show_doc);
}
Here more warnings produced by the compilation step in libliberty:
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./pex-common.c -o pex-common.o
./pex-common.c: In function 'temp_file':
./pex-common.c:120: warning: missing sentinel in function call
./pex-common.c:141: warning: missing sentinel in function call
./pex-common.c: In function 'pex_run_in_environment':
./pex-common.c:225: warning: missing sentinel in function call
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./strsignal.c -o strsignal.o
./strsignal.c: In function 'strsignal':
./strsignal.c:427: warning: the address of 'sys_siglist' will never be NULL
- Raw text -