Re: hasmntopt compiler warning

2014-06-02 Thread Paul Eggert
Ben Walton wrote: Should I simply add a conditional logic to detect Solaris (and later other platforms) that exhibit this mismatch That'd be OK, thanks. If someone wants to do something fancier that'd be even better.

hasmntopt compiler warning

2014-06-02 Thread Ben Walton
Hi All, When building coreutils on solaris 10 x86 with warnings as errors, the mountlist.c code using hasmntopt complains about passing a const char to a function expecting char. Solaris defines hasmntopt as: char *hasmntopt(struct mnttab *, char *); While it's easy to patch around locally,