1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-01-27 20:47:56 +00:00

compile in needed helpers and fix warnings

This commit is contained in:
Miodrag Milanovic
2018-06-28 13:57:11 +02:00
parent 403c2d65a2
commit 45032e2224
5 changed files with 27 additions and 17 deletions

View File

@@ -51,7 +51,7 @@ bool ParseHelper::PeekIndent( const std::string& str, Indent* indent )
return false;
int nonwhitespaceIndex = -1;
for (int i = 0; i < str.size(); ++i)
for (size_t i = 0; i < str.size(); ++i)
{
if (!isspace(str[i]))
{
@@ -151,7 +151,7 @@ bool ParseHelper::buffered( ) const
void ParseHelper::flush( )
{
std::stringstream ss;
for (int i = 0; i < commandBuffer.size(); ++i )
for (size_t i = 0; i < commandBuffer.size(); ++i )
{
ss << commandBuffer[i] << "\n";
}
@@ -188,7 +188,7 @@ void ParseHelper::unsubscribeAll( )
void ParseHelper::broadcast( const ParseMessage& msg )
{
// broadcast signal
for (int i = 0; i < listeners.size(); ++i)
for (size_t i = 0; i < listeners.size(); ++i)
{
if (listeners[i])
{