Bug 57353 - source code problems
Summary: source code problems
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: usermode
Version: 7.1
Hardware: alpha
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-12-10 18:40 UTC by d.binderman
Modified: 2013-07-02 22:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-09-30 00:39:54 UTC
Embargoed:


Attachments (Terms of Use)

Description d.binderman 2001-12-10 18:40:00 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk  (Win98; I)

Description of problem:

In compiling package usermode-1.42-1 from RedHat 7.1,
I got the following message from the compiler

1.

cc: Warning: consolehelper.c, line 82: In this statement, the expression "constructed_argv[cargc+cdiff]=argv[cargc++]" modifies "cargc", 
and fetches its value in a computation that is not used to produce the modified value without an intervening sequence point.  This behavior 
is undefined. (undefvarfetch)
  for (cargc = 1; cargc < argc; constructed_argv[cargc+cdiff] = argv[cargc++]);
--------------------------------^

maybe something like

  for (cargc = 1; cargc < argc; )
  {
	constructed_argv[ cargc + cdiff] = argv[ cargc];
	++cargc;
  }

would be better.



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


How reproducible:
Always

Steps to Reproduce:
1. compiler with Compaq C compiler and flag -w0
2.
3.
	

Additional info:

Comment 1 Miloslav Trmač 2004-09-30 00:39:54 UTC
Thanks for your report, this is fixed in current version.


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