mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
0e89375772
On systems where 'mode_t' is smaller than 'int', doing 'va_arg (ap, mode_t)' is wrong because of C's "default argument promotions". GCC 4 creates crashing code in this case. The "va_arg" page of Gnulib's manual describes the problem and a simple solution: https://www.gnu.org/software/gnulib/manual/html_node/va_005farg.html However, since that solution reportedly (see thread at next link) still causes GCC to print warnings (for no good reason; perhaps this was fixed in newer GCCs), we pick a solution that defines a PROMOTED_MODE_T at the configuration stage: https://lists.gnu.org/archive/html/bug-gnulib/2009-05/msg00231.html (We take our 'mode_t.m4' from the most recent Gnulib source.) (If any of the URLs above no longer works, simply search the web for the mentioned words.) |
||
---|---|---|
.. | ||
vfs | ||
ac_onceonly.m4 | ||
ax_path_lib_pcre.m4 | ||
dx_doxygen.m4 | ||
fstypename.m4 | ||
fsusage.m4 | ||
ls-mntd-fs.m4 | ||
mc-background.m4 | ||
mc-cflags.m4 | ||
mc-check-search-type.m4 | ||
mc-get-fs-info.m4 | ||
mc-glib.m4 | ||
mc-i18n.m4 | ||
mc-subshell.m4 | ||
mc-tests.m4 | ||
mc-use-termcap.m4 | ||
mc-version.m4 | ||
mc-vfs.m4 | ||
mc-with-internal-edit.m4 | ||
mc-with-screen-ncurses.m4 | ||
mc-with-screen-slang.m4 | ||
mc-with-screen.m4 | ||
mc-with-x.m4 | ||
mode_t.m4 | ||
mountlist.m4 |