Skip to content

Commit

Permalink
Fix PVS warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gsurkov committed Oct 24, 2023
1 parent ef7ce17 commit f09de18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion applications/main/infrared/infrared_remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define INFRARED_FILE_HEADER "IR signals file"
#define INFRARED_FILE_VERSION (1)

ARRAY_DEF(StringArray, const char*, M_CSTR_DUP_OPLIST);
ARRAY_DEF(StringArray, const char*, M_CSTR_DUP_OPLIST); //-V575

struct InfraredRemote {
StringArray_t signal_names;
Expand Down
4 changes: 2 additions & 2 deletions applications/main/infrared/infrared_signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ bool infrared_signal_read(InfraredSignal* signal, FlipperFormat* ff, FuriString*
if(!infrared_signal_read_name(ff, name)) break;
if(!infrared_signal_read_body(signal, ff)) break;

success = true;
success = true; //-V779
} while(false);

return success;
Expand All @@ -272,7 +272,7 @@ bool infrared_signal_search_and_read(InfraredSignal* signal, FlipperFormat* ff,

do {
bool is_name_found = false;
while(!is_name_found && infrared_signal_read_name(ff, tmp)) {
while(!is_name_found && infrared_signal_read_name(ff, tmp)) { //-V560
is_name_found = furi_string_equal(tmp, name);
}
if(!is_name_found) break; //-V547
Expand Down

0 comments on commit f09de18

Please sign in to comment.