Skip to content

Commit

Permalink
Silence a false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Nov 21, 2020
1 parent 899a405 commit 80b3d78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/tao/pegtl/position.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,19 @@ namespace TAO_PEGTL_NAMESPACE
{
position() = delete;

#if defined( __GNUC__ )
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
position( position&& p ) noexcept
: byte( p.byte ),
line( p.line ),
column( p.column ),
source( std::move( p.source ) )
{}
#if defined( __GNUC__ )
#pragma GCC diagnostic pop
#endif

position( const position& ) = default;

Expand Down

0 comments on commit 80b3d78

Please sign in to comment.