This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/16014] Coding error: 2 * sizeof( sizeof())
- From: "dcb314 at hotmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 08 Oct 2013 17:33:46 +0000
- Subject: [Bug gdb/16014] Coding error: 2 * sizeof( sizeof())
- Auto-submitted: auto-generated
- References: <bug-16014-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16014
--- Comment #2 from dcb <dcb314 at hotmail dot com> ---
>It would be more convenient if you ran cppcheck against cvs head.
Maybe, or you could have a look at the gdb-7.6.1 that I reported
the problems against.
More of a clue for the first one:
qfn->real_names = OBSTACK_CALLOC (&objfile->objfile_obstack,
qfn->num_file_names, sizeof (char *));
I am guessing that removing the mention of sizeof will help.
For the second:
write_inferior_data_ptr
(actions_array + i * sizeof (sizeof (*tpoint->actions)),
ipa_action);
Here another removal of a sizeof looks plausible.
--
You are receiving this mail because:
You are on the CC list for the bug.