Bug 101811 - [PATCH] remove unused variables
Summary: [PATCH] remove unused variables
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: cpp frontend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-16 21:16 UTC by Jannick
Modified: 2018-08-21 10:34 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
remove unused variables (896 bytes, patch)
2017-07-16 21:16 UTC, Jannick
Details | Splinter Review

Description Jannick 2017-07-16 21:16:23 UTC
Created attachment 132723 [details] [review]
remove unused variables

some clean-up work.
Comment 1 Albert Astals Cid 2017-07-31 13:13:12 UTC
internal DCTStream is unmaintained, but there's not really a need to add a patch that breaks it either, please either fix your patch or just stop using unmaintained code and use the DCTStream that uses libjpeg
Comment 2 Jannick 2017-08-01 09:56:13 UTC
The clean-up is meant to pacify the compiler complaining about unused or even uninitialized variables in the code given the configuration.

Just to understand what you are saying and to be productive: Where exactly breaks your code, since mine works well under my configuration?

Probably a good idea to make the *compiler* throw either an information or an error that the internal DCTStream is unmaintained and have the dev use the alternative code.
Comment 3 Albert Astals Cid 2017-08-01 16:57:13 UTC
(In reply to Jannick from comment #2)
> The clean-up is meant to pacify the compiler complaining about unused or
> even uninitialized variables in the code given the configuration.
> 
> Just to understand what you are saying and to be productive: Where exactly
> breaks your code, since mine works well under my configuration?

You removed the calls to read16 so the stream is not advanced and thus any subsequent read is wrong. 

> 
> Probably a good idea to make the *compiler* throw either an information or
> an error that the internal DCTStream is unmaintained and have the dev use
> the alternative code.

Which version are you using? You have to explicitly say you want the unmaintained code on configure / cmake time.
Comment 4 GitLab Migration User 2018-08-21 10:34:00 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/263.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.