Bug 101036 - bad source code
Summary: bad source code
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gphoto2
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-07-28 18:56 UTC by d.binderman
Modified: 2007-04-18 16:56 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2003-07-29 10:40:51 UTC


Attachments (Terms of Use)

Description d.binderman 2003-07-28 18:56:59 UTC
Description of problem:

Hello there,

I just tried to compile package gphoto2-2.1.0-7 from Redhat 9.0
with compiler flag -Wall.

The compiler said

jpeg.c:187: warning: operation on `position' may be undefined

The source code is

            position=position++;

Better source code would be

            position++;


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
    
Actual results:


Expected results:


Additional info:

Comment 1 Tim Waugh 2003-07-29 10:40:51 UTC
Thanks.  The current development version already contains a fix for this.


Note You need to log in before you can comment on or make changes to this bug.