Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: [hwloc-devel] sometimes unused params
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2010-01-08 12:11:29


How do you guys want to handle params that are *sometimes* unused?

For example, topology.c:1450 is:

-----
int
hwloc_topology_set_fsroot(struct hwloc_topology *topology, const char *fsroot_path)
{
  /* cleanup existing backend */
  hwloc_backend_exit(topology);

#ifdef HWLOC_LINUX_SYS
  if (hwloc_backend_sysfs_init(topology, fsroot_path) < 0)
    return -1;
#endif /* HWLOC_LINUX_SYS */

  return 0;
}
-----

On OS X, I get

-----
topology.c:1451: warning: unused parameter ‘fsroot_path’

----
(and a few others like this)
-- 
Jeff Squyres
jsquyres_at_[hidden]