Skip to content

Commit

Permalink
fixup! Remove openvpn_snprintf and similar functions
Browse files Browse the repository at this point in the history
Change-Id: I9bad0f021dc40aa582371c6ccf9f3dac99ac8d56
  • Loading branch information
schwabe committed Mar 25, 2024
1 parent 9b227be commit ef62301
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/unit_tests/openvpn/test_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,10 @@ test_snprintf(void **state)
#if defined(__GNUC__)
/* some clang version do not understand -Wformat-truncation, so ignore the
* warning to avoid warnings/errors (-Werror) about unknown pragma/option */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunknown-warning-option"
#endif
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-truncation"
#endif
Expand All @@ -404,7 +406,9 @@ test_snprintf(void **state)
assert_int_equal(buf[9], '\0');

#if defined(__GNUC__)
#if defined(__clang__)
#pragma GCC diagnostic pop
#endif
#pragma GCC diagnostic pop
#endif
}
Expand Down

0 comments on commit ef62301

Please sign in to comment.