Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jul 4, 2024
1 parent b9c7509 commit 10683d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/orm/query/grammars/grammar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ QList<QVariant>
Grammar::prepareBindingsForUpdate(const BindingsMap &bindings,
const QList<UpdateItem> &values)
{
/* The following ignored diagnostic is correct, I could fix this problem with:
const auto it = bindings.find(BindingType::JOIN);
const auto &joinBindings = it.value;
But I want to how at least one example of ignored diagnostic in the code. */
#if defined(__GNUG__) && !defined(__clang__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdangling-reference"
Expand Down

0 comments on commit 10683d3

Please sign in to comment.