View Issue Details

IDProjectCategoryView StatusLast Update
0000562ascendgeneralpublic2013-02-26 13:42
Reporterben 
Assigned Tojohn 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Platformx86OSunixOS Versionany
Product VersionSVN 
Target Version0.9.9Fixed in Version 
Summary0000562: color.h portability messed up
Descriptioncolor.h has a windows-only function signature that has no unix alternative provided correctly. Several places in the source, the windows signature is in use regardless of platform. e.g.

ascend/utilities/error.c: In function ‘error_reporter_default_callback’:
ascend/utilities/error.c:52: warning: assignment makes pointer from integer without a cast
ascend/utilities/error.c:54: warning: assignment makes pointer from integer without a cast
ascend/utilities/error.c:56: warning: assignment makes pointer from integer without a cast
ascend/utilities/error.c:57: warning: assignment makes pointer from integer without a cast
ascend/utilities/error.c:58: warning: assignment makes pointer from integer without a cast
ascend/utilities/error.c:59: warning: assignment makes pointer from integer without a cast
ascend/utilities/error.c:61: warning: assignment makes pointer from integer without a cast
ascend/utilities/error.c:64: warning: passing argument 2 of ‘color_on’ makes integer from pointer without a cast
./ascend/general/color.h:71: note: expected ‘int’ but argument is of type ‘char *’


Steps To Reproducerun something that generates an error message from parse, compile, or solve (at least under tcltk).
TagsNo tags attached.

Relationships

Activities

john

2012-08-09 10:30

administrator   ~0000893

Last edited: 2012-08-09 10:31

View 2 revisions

Ben

Take a look at the version in the FPROPS2 branch which I did a little work with no so far back; perhaps this has some fixes that didn't get back to the code/trunk/ascend/general/color.c code?

code/branches/fprops2/models/johnpye/fprops/color.c

Cheers
JP

john

2012-08-15 11:30

administrator   ~0000902

Ben -- please check to see if the above fix corrects the problem on your system.

Issue History

Date Modified Username Field Change
2012-08-09 10:14 ben New Issue
2012-08-09 10:14 ben Status new => assigned
2012-08-09 10:14 ben Assigned To => john
2012-08-09 10:30 john Note Added: 0000893
2012-08-09 10:31 john Note Edited: 0000893 View Revisions
2012-08-15 11:29 svn
2012-08-15 11:29 svn Status assigned => resolved
2012-08-15 11:29 svn Resolution open => fixed
2012-08-15 11:30 john Note Added: 0000902
2013-02-26 13:42 john Target Version => 0.9.9