On Wed, Sep 11, 2013 at 5:44 PM, Eric Bénard <eric at eukrea.com> wrote: > instead of providing an empty function you could fix the problem in the > code calling this function by changing > if (dev->detect(dev)) > to something like > if (dev->detect && dev->detect(dev)) Thanks, Eric. This is a better solution.