add_pending_object_with_path(): work around "gcc -O3" complaint