Skip to content

Commit

Permalink
Fix nasa#1458, Adds JSC 2.1 Static Analysis comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdfiguer authored and jdfiguer committed Jun 13, 2024
1 parent 6483329 commit 9d5ce32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/os/inc/osapi-clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ static inline int64 OS_TimeGetTotalMicroseconds(OS_time_t tm)
*/
static inline OS_time_t OS_TimeFromTotalMicroseconds(int64 tm)
{
/* SAD: This is not considered a concern because it would require an input equivalent to over 29,227 years in microseconds. */
OS_time_t ostm = {tm * OS_TIME_TICKS_PER_USEC};
return ostm;
}
Expand Down
2 changes: 1 addition & 1 deletion ut_assert/scripts/generate_stubs.pl
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@
close(OUT);

# invoke clang-format on the output, so it will have consistent whitespace
system("clang-format -style=file -i \'$stubfile\'") == 0 || die "Unable to call clang-format\n";
system("clang-format-10 -style=file -i \'$stubfile\'") == 0 || die "Unable to call clang-format\n";

print "Generated $stubfile\n";
}

0 comments on commit 9d5ce32

Please sign in to comment.