janwilmans / DezyneSamples

Simple examples of Dezyne models and their generated code
MIT License
1 stars 0 forks source link

Warning at warning level 4 in visual studio 2017 #2

Closed janwilmans closed 6 years ago

janwilmans commented 7 years ago
------ Build started: Project: Alarm, Configuration: Debug x64 ------
1>main.cpp
1>c:\users\jan\dezyneworkspace\dezynesamples\alarm\vs2017project\main.cpp(44): warning C4100: 'argv': unreferenced formal parameter
1>c:\users\jan\dezyneworkspace\dezynesamples\alarm\vs2017project\main.cpp(44): warning C4100: 'argc': unreferenced formal parameter
1>runtime.cc
1>c:\users\jan\dezyneworkspace\dezynesamples\alarm\dzn\context.hh(19): warning C4458: declaration of 'state' hides class member
1>c:\users\jan\dezyneworkspace\dezynesamples\alarm\dzn\context.hh(30): note: see declaration of 'dzn::context::state'
1>c:\users\jan\dezyneworkspace\dezynesamples\alarm\dzn\context.hh(101): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
1>pump.cc
1>c:\users\jan\dezyneworkspace\dezynesamples\alarm\dzn\context.hh(19): warning C4458: declaration of 'state' hides class member
1>c:\users\jan\dezyneworkspace\dezynesamples\alarm\dzn\context.hh(30): note: see declaration of 'dzn::context::state'
1>c:\users\jan\dezyneworkspace\dezynesamples\alarm\dzn\context.hh(101): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
1>Alarm.cc
1>Generating Code...
1>Alarm.vcxproj -> C:\Users\jan\DezyneWorkspace\DezyneSamples\Alarm\vs2017project\x64\Debug\Alarm.exe
1>Done building project "Alarm.vcxproj".
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
janwilmans commented 6 years ago

solved