With clang invalid cflags usage result in exit 0, we expect exit 1.
$ clang -c -Wmaybe-uninitialized conftest.c ; echo $?
warning: unknown warning option '-Wmaybe-uninitialized'; did you mean '-Wuninitialized'? [-Wunknown-warning-option]
1 warning generated.
0
solution with -Werror on cflags check
$ clang -c -Werror -Wmaybe-uninitialized conftest.c ; echo $?
error: unknown warning option '-Wmaybe-uninitialized'; did you mean '-Wuninitialized'? [-Werror,-Wunknown-warning-option]
1
(Tested with clang 3.6.)
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Add editor_state_full_filename option to choose full or base file name
in the mceditor status line. Option is hidden and accessible in the
mc.ini configuration file only. Disabled by default to be consistent
with the file name format in the mcviewer status line.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sync with gnulib 3fb6e360363744462ce15c381f0b116c6fc4ce82.
src/filemanager/mountlist.c: remove dependency on libmount.
Parse /proc/self/mountinfo directly, rather than depending on libmount,
which has many dependencies due to its dependence on libselinux, as
detailed at:
http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html.
Note we restrict this to __linux__ as that's probably where this
interface will remain. If ever porting, it would be best to first pull
the makedev() wrapper from coreutils to a gnulib module.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 3444_path_mc_popen:
Revert "Clarify description of clipboard_store and clipboard_paste options."
Ticket #3444: (mc_popen): use the PATH environment variable
...to search for the executable when opening pipe:
add the G_SPAWN_SEARCH_PATH flag to the g_spawn_async_with_pipes() call,
which cause mc to use the PATH environment variable to search for the
executable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 3265_cleanup: (22 commits)
Update po/*.po files.
tests/lib/search/Makefile.am: fix name of variable.
Remove code required for GLib < 2.14.0.
Minimal version of GLib is 2.14.0
Ticket #3405: mcview: use VIEW_SELECTED_COLOR in plain mode.
Hints: capitalize Lynx since it is the proper noun.
(dirsize_status_update_cb): use local variables instead of type casting.
doc/NEWS: cosmetics.
(input_execute_cmd): refactoring.
* background.c (background_attention): Fix memory leak.
g_utf8_next_char() never returns NULL. Remove redundant checks.
diffviewer: clarify support of UTF-8 codeset.
Ticket #3246: misc/mcedit.menu.in: better grammar.
Ticket #3262: rename variables.
Add IS_PATH_SEP macro and use it.
(edit_get_match_keyword_cmd): use PATH_SEP_STR instead of G_DIR_SEPARATOR_S.
Update copyright years.
(mc_search_regex_prepare_replace_str): refactoring.
lib/search/regex.c: use [] to get char in string.
(mc_search_prepare_replace_str2): make replace_str const.
...