summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d194919)
Gcc doesn't include unused inline functions, even without -O, but Solaris CC
does, so fails to link block_pool where one inline function refers to a
non-inline function.
static char *obj_list(const struct manifest *m)
{
static char *obj_list(const struct manifest *m)
{
- char *list = talloc_strdup(m, "");
+ if (m->compiled[COMPILE_NORMAL])
+ list = talloc_strdup(m, m->compiled[COMPILE_NORMAL]);
+ else
+ list = talloc_strdup(m, "");
+
/* Other CCAN deps. */
list_for_each(&m->deps, i, list) {
if (i->compiled[COMPILE_NORMAL])
/* Other CCAN deps. */
list_for_each(&m->deps, i, list) {
if (i->compiled[COMPILE_NORMAL])
- list = talloc_asprintf_append(list, "%s ",
+ list = talloc_asprintf_append(list, " %s",
i->compiled
[COMPILE_NORMAL]);
}
i->compiled
[COMPILE_NORMAL]);
}