Bug 101811

Summary: [PATCH] remove unused variables
Product: poppler Reporter: Jannick <thirdedition>
Component: cpp frontendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: remove unused variables

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.