mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-12 02:43:42 +03:00
Sync with gnulib 502809019bd2ca3ce3d041d18c35ce9420eedb72.
Avoid hasmntopt const type warning on Solaris. Solaris defines the OPT param of hasmntopt() with char * instead of const char *. Passing the constant string "ignore" generates a compiler warning. For Solaris cast MNT_IGNORE to avoid the warning. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
a18cf7bae6
commit
46651f04d1
@ -163,7 +163,13 @@
|
||||
|
||||
#undef MNT_IGNORE
|
||||
#ifdef MNTOPT_IGNORE
|
||||
#define MNT_IGNORE(M) hasmntopt ((M), MNTOPT_IGNORE)
|
||||
#if defined __sun && defined __SVR4
|
||||
/* Solaris defines hasmntopt(struct mnttab *, char *)
|
||||
while it is otherwise hasmntopt(struct mnttab *, const char *). */
|
||||
#define MNT_IGNORE(M) hasmntopt (M, (char *) MNTOPT_IGNORE)
|
||||
#else
|
||||
#define MNT_IGNORE(M) hasmntopt (M, MNTOPT_IGNORE)
|
||||
#endif
|
||||
#else
|
||||
#define MNT_IGNORE(M) 0
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user