Bug 137753 - thinkeramik-3.2.1-8: undefined C code
Summary: thinkeramik-3.2.1-8: undefined C code
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Translations (show other bugs)
Version: Final
Hardware: All SuSE Linux 10.0
: P5 - None : Minor
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-09 09:26 UTC by David Binderman
Modified: 2006-01-27 14:34 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2005-12-09 09:26:00 UTC
I just tried to compile package thinkeramik-3.2.1-8 with a
prerelease of the GNU C compiler version 4.1. It said

1.

./widget-engine/kstyle.cpp:1871: warning: operation on "data" may be undefined

The source code is

	*data++ = (unsigned char)((*data)*top_right_corner[i]);

I agree with the compiler - this code seems to be undefined.

Suggest new code  

	*data = (unsigned char)((*data)*top_right_corner[i]);
	++data;

or maybe

	*data++ = top_right_corner[i];

2.

./widget-engine/kstyle.cpp:1872: warning: operation on 'data' may be undefined
./widget-engine/kstyle.cpp:1873: warning: operation on 'data' may be undefined
./widget-engine/kstyle.cpp:1880: warning: operation on 'data' may be undefined
./widget-engine/kstyle.cpp:1881: warning: operation on 'data' may be undefined
./widget-engine/kstyle.cpp:1882: warning: operation on 'data' may be undefined

Duplicates.

3.

./widget-engine/kstyle.cpp:1884: warning: operation on 'c' may be undefined

The source code is

	c = ++c % 4;

I agree with the compiler - this code seems to be undefined.

Suggest new code  

	c = (c + 1) % 4;

4.

./widget-engine/kstyle.cpp:1889: warning: operation on 'data' may be undefined
./widget-engine/kstyle.cpp:1890: warning: operation on 'data' may be undefined
./widget-engine/kstyle.cpp:1891: warning: operation on 'data' may be undefined
./widget-engine/kstyle.cpp:1916: warning: operation on 'data' may be undefined
./widget-engine/kstyle.cpp:1917: warning: operation on 'data' may be undefined
./widget-engine/kstyle.cpp:1918: warning: operation on 'data' may be undefined
./widget-engine/kstyle.cpp:1925: warning: operation on 'data' may be undefined
./widget-engine/kstyle.cpp:1926: warning: operation on 'data' may be undefined
./widget-engine/kstyle.cpp:1927: warning: operation on 'data' may be undefined

Duplicates.

BTW, I tried to email the author [ konro@lycos.jp ] but I got 
delivery failure.
Comment 1 Dirk Mueller 2006-01-27 14:34:00 UTC
fixed for 10.1