* cfg.mk (local-checks-to-skip): Remove a few useless exclusions
and enable a few syntax checks.
* libparted/arch/linux.c (linux_destroy): Avoid triggering the
sc_cast_of_argument_to_free check.
* parted/strlist.c (str_list_destroy_node): Likewise.
sc_space_tab \
sc_tight_scope \
sc_useless_cpp_parens \
- changelog-check \
- strftime-check \
- patch-check \
- author_mark_check \
- sc_cast_of_argument_to_free \
- check-AUTHORS
+ changelog-check
# Now that we have better (check.mk) tests, make this the default.
export VERBOSE = yes
static void
linux_destroy (PedDevice* dev)
{
- free (((LinuxSpecific*)dev->arch_specific)->dmtype);
+ void *p = ((LinuxSpecific*)dev->arch_specific)->dmtype;
+ free (p);
free (dev->arch_specific);
free (dev->path);
free (dev->model);
void
str_list_destroy_node (StrList* list)
{
- free ((wchar_t*) list->str);
+ void *p = (char *) (list->str); /* discard const */
+ free (p);
free (list);
}