Skip to content

Cleanup build warnings#11

Merged
M-Reimer merged 2 commits intovdr-projects:masterfrom
heitbaum:cleanup
Mar 23, 2026
Merged

Cleanup build warnings#11
M-Reimer merged 2 commits intovdr-projects:masterfrom
heitbaum:cleanup

Conversation

@heitbaum
Copy link
Contributor

  • fix -Wparentheses warning
  • remove unused variables fixing -Wunused-but-set-variable=

fixes:
remux.c: In function 'get_video_info':
remux.c:485:14: warning: variable 'off' set but not used [-Wunused-but-set-variable=]
  485 |         long off = 0;
      |              ^~~
remux.c: In function 'get_audio_info':
remux.c:607:14: warning: variable 'off' set but not used [-Wunused-but-set-variable=]
  607 |         long off = 0;
      |              ^~~
remux.c: In function 'remux':
remux.c:834:14: warning: variable 'packets' set but not used [-Wunused-but-set-variable=]
  834 |         long packets = 0;
      |              ^~~~~~~
fixes:
livestreamer.c: In member function 'virtual void cStreamdevLiveStreamer::ChannelChange(const cChannel*)':
livestreamer.c:699:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  699 |                 if (m_Device = cDevice::GetDevice(Channel, LIVEPRIORITY, false)) {
      |                     ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@M-Reimer M-Reimer merged commit 7f13fdb into vdr-projects:master Mar 23, 2026
@heitbaum heitbaum deleted the cleanup branch March 23, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants