Fix some warnings

This commit is contained in:
ridiculousfish 2017-12-21 13:53:18 -08:00
parent 4096a7fda9
commit a2114233ac
2 changed files with 4 additions and 1 deletions

View File

@ -495,6 +495,8 @@ parse_execution_result_t parse_execution_context_t::run_for_statement(
const wcstring &val = argument_sequence.at(i); const wcstring &val = argument_sequence.at(i);
int retval = env_set_one(for_var_name, ENV_DEFAULT | ENV_USER, val); int retval = env_set_one(for_var_name, ENV_DEFAULT | ENV_USER, val);
assert(retval == ENV_OK && "for loop variable should have been successfully set");
(void)retval;
fb->loop_status = LOOP_NORMAL; fb->loop_status = LOOP_NORMAL;
this->run_job_list(block_contents, fb); this->run_job_list(block_contents, fb);

View File

@ -91,7 +91,8 @@ bool wildcard_has(const wcstring &str, bool internal) {
/// ///
/// \param str String to be matched. /// \param str String to be matched.
/// \param wc The wildcard. /// \param wc The wildcard.
/// \param is_first Whether files beginning with dots should not be matched against wildcards. /// \param leading_dots_fail_to_match Whether files beginning with dots should not be matched
/// against wildcards.
static enum fuzzy_match_type_t wildcard_match_internal(const wchar_t *str, const wchar_t *wc, static enum fuzzy_match_type_t wildcard_match_internal(const wchar_t *str, const wchar_t *wc,
bool leading_dots_fail_to_match) { bool leading_dots_fail_to_match) {
// Hackish fix for issue #270. Prevent wildcards from matching . or .., but we must still allow // Hackish fix for issue #270. Prevent wildcards from matching . or .., but we must still allow