Index: trunk/src/obj_subc.c =================================================================== --- trunk/src/obj_subc.c (revision 28365) +++ trunk/src/obj_subc.c (revision 28366) @@ -177,7 +177,7 @@ } /* Find and save the aux layer in the cache, of it exists */ -void pcb_subc_cache_find_aux(pcb_subc_t *sc, int alloc) +void pcb_subc_cache_find_aux(pcb_subc_t *sc) { int n; for(n = 0; n < sc->data->LayerN; n++) { @@ -198,7 +198,7 @@ static int pcb_subc_cache_update(pcb_subc_t *sc) { if (sc->aux_layer == NULL) - pcb_subc_cache_find_aux(sc, 0); + pcb_subc_cache_find_aux(sc); if (sc->aux_cache[0] != NULL) return 0; @@ -405,7 +405,7 @@ static void get_aux_layer(pcb_subc_t *sc, int alloc) { if (sc->aux_layer == NULL) - pcb_subc_cache_find_aux(sc, 1); + pcb_subc_cache_find_aux(sc); pcb_subc_cache_update(sc); } Index: trunk/src/obj_subc.h =================================================================== --- trunk/src/obj_subc.h (revision 28365) +++ trunk/src/obj_subc.h (revision 28366) @@ -169,7 +169,7 @@ pcb_bool pcb_subc_find_aux_point(pcb_subc_t *sc, const char *role, pcb_coord_t *x, pcb_coord_t *y); /* Find and save the aux layer in the cache, of it exists */ -void pcb_subc_cache_find_aux(pcb_subc_t *sc, int alloc); +void pcb_subc_cache_find_aux(pcb_subc_t *sc); pcb_subc_t *pcb_subc_dup_at(pcb_board_t *pcb, pcb_data_t *dst, pcb_subc_t *src, pcb_coord_t dx, pcb_coord_t dy, pcb_bool keep_ids);