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
jsquy...@cisco.com


Reply via email to