Skip to content

Commit

Permalink
nixexpr.hh: Avoid the warning and pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Jul 15, 2024
1 parent 6b40cfc commit 5f503ed
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/libexpr/nixexpr.hh
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,11 @@ struct Value;
*/
struct DocComment {

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcomment" // "nested comment start" is intentional

/**
* Start of the comment, including `/**`.
* Start of the comment, including the opening, ie `/` and `**`.
*/
PosIdx begin;

#pragma GCC diagnostic pop

/**
* Position right after the final asterisk and `/` that terminate the comment.
*/
Expand Down

0 comments on commit 5f503ed

Please sign in to comment.