Skip to content

Commit

Permalink
fix(String): ignore clang loop unrolling warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Dec 5, 2023
1 parent f54e62c commit a449e3a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Foundation/include/Poco/String.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
#include <cstring>
#include <algorithm>

// ignore loop unrolling warnings in this file
#if defined(__clang__) && ((__clang_major__ > 3) || (__clang_major__ == 3 && __clang_minor__ >= 6))
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wpass-failed"
#endif

namespace Poco {

Expand Down Expand Up @@ -760,5 +765,8 @@ struct CILess

} // namespace Poco

#if defined(__clang__) && ((__clang_major__ > 3) || (__clang_major__ == 3 && __clang_minor__ >= 6))
# pragma clang diagnostic pop
#endif

#endif // Foundation_String_INCLUDED

0 comments on commit a449e3a

Please sign in to comment.