Bug 102 - Warnings are generated when the assert macro is compiled out
Summary: Warnings are generated when the assert macro is compiled out
Status: RESOLVED FIXED
Alias: None
Product: PulseView
Classification: Unclassified
Component: Build system (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 45
  Show dependency treegraph
 
Reported: 2013-04-22 14:03 CEST by Joel Holdsworth
Modified: 2013-04-23 11:06 CEST (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Holdsworth 2013-04-22 14:03:25 CEST
From uwe_ this compile error when the assert( ) macro is compiled out:

pv/sigsession.cpp: In member function 'void pv::SigSession::feed_in_header(const sr_dev_inst*)':
pv/sigsession.cpp:222:12: warning: unused variable 'ret' [-Wunused-variable]
pv/dialogs/connect.cpp: In member function 'void pv::dialogs::Connect::populate_drivers()':
pv/dialogs/connect.cpp:103:5: warning: 'hwopts' may be used uninitialized in this function [-Wmaybe-uninitialized]

uwe_: one might be related to that (IMHO incorrect) assert