Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaishaonvjituizi authored May 5, 2022
1 parent 178dd27 commit 5b447c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions paddle/utils/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

#pragma once

// gcc >= 9 has a bug that creates a false positive warning.
// Reference:
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89381
#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 9
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
Expand Down

1 comment on commit 5b447c1

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.