Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/klibc/rt_vsnprintf_std.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,13 +592,13 @@ static double apply_scaling(double num, struct scaling_factor normalization)

static double unapply_scaling(double normalized, struct scaling_factor normalization)
{
#if defined(__GNUC__) && !defined(__ARMCC_VERSION) /* GCC */
#if defined(__GNUC__) && !defined(__clang__) && !defined(__ARMCC_VERSION) /* GCC */
// accounting for a static analysis bug in GCC 6.x and earlier
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
return normalization.multiply ? normalized / normalization.raw_factor : normalized * normalization.raw_factor;
#if defined(__GNUC__) && !defined(__ARMCC_VERSION) /* GCC */
#if defined(__GNUC__) && !defined(__clang__) && !defined(__ARMCC_VERSION) /* GCC */
#pragma GCC diagnostic pop
#endif
}
Expand Down
Loading