Modify

Ticket #8138 (closed Bugs: fixed)

Opened 14 months ago

Last modified 13 months ago

Conversion warning in sequence_stack.hpp

Reported by: mbradle@… Owned by: eric_niebler
Milestone: To Be Determined Component: xpressive
Version: Boost Development Trunk Severity: Cosmetic
Keywords: Cc:

Description

Hello,

When I compile the example code boost-trunk/libs/graph/example/write_graphviz.cpp with the g++ compiler flag -Wconversion, I get the warning 'conversion to 'double' from 'size_t' may alter its value' (see attached test.txt). Casting this->current_chunk_->size() as a double on line 118 of boost/xpressive/detail/utility/sequence_stack.hpp clears this warning (see attached diff.txt). This is a possible patch. Thanks, and best wishes.

Brad Meyer

Attachments

test.txt Download (8.5 KB) - added by mbradle@… 14 months ago.
transcript of compilation and warning
diff.txt Download (774 bytes) - added by mbradle@… 14 months ago.
Change that removed the warning (possible patch)

Change History

Changed 14 months ago by mbradle@…

transcript of compilation and warning

Changed 14 months ago by mbradle@…

Change that removed the warning (possible patch)

comment:1 Changed 14 months ago by eric_niebler

(In [83304]) silence a gcc warning, refs #8138

comment:2 Changed 13 months ago by eric_niebler

  • Status changed from new to closed
  • Resolution set to fixed

(In [83390]) merge [83304] from trunk, fixes #8138

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.