Skip to content

Commit

Permalink
Ignore -Woverloaded-virtual coming from antlr lib
Browse files Browse the repository at this point in the history
Signed-off-by: Shard Gupta <[email protected]>
  • Loading branch information
shardgupta committed Mar 3, 2025
1 parent fe05c4e commit ee1a9fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/babelfishpg_tsql/src/collation.c
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ icu_compare_utf8_coll(UCollator *coll, UChar *uchar1, int32_t ulen1,

if (is_cs_ai_range_cmp)
{
collator = ucol_clone(coll, &status);
collator = ucol_safeClone(coll, NULL, NULL, &status);

if (U_FAILURE(status))
ereport(ERROR,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@

#pragma GCC diagnostic ignored "-Wattributes"

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
extern "C" {
#include "antlr4-runtime.h" // antlr4-cpp-runtime
}
#pragma GCC diagnostic pop

#include "tree/ParseTreeWalker.h" // antlr4-cpp-runtime
#include "tree/ParseTreeProperty.h" // antlr4-cpp-runtime

Expand Down

0 comments on commit ee1a9fb

Please sign in to comment.