Copiling warning, C4058 of MSC V5.1 - DS != SS

Alan Ballard ballard at cheddar.ucs.ubc.ca
Thu Feb 7 05:08:13 AEST 1991


In article <1991Feb6.091030.27891 at hellgate.utah.edu> h-lee%hogum.utah.edu at cs.utah.edu (LEE Hyo Jong) writes:
>I got the warning of 'address of frame variable taken, DS!=SS'.
>It usually happens when I calls the math lib functions such as
>pow() or sin() or when I manipulate three dimensional arrays.
>Since I am using multithread, one of my compile options(MSC V5.1) is
>-Aluf.
 
Hm, this should only happen if you're passing a near pointer, which
shouldn't occur with -Aluf.  Is it possible the functions involved
have explicit "near" attributes for parameters etc.?   
 
I have managed to suppress this message in the past, in situations where
SS was == DS, even though the compiler didn't know it, by using casts. 
Don't remember the details: something like a cast to a far pointer then
a cast to a near pointer. 


Alan Ballard                   | Internet: ballard at ucs.ubc.ca
University Computing Services  |   Bitnet: USERAB1 at UBCMTSG
University of British Columbia |    Phone: 604-228-3074
Vancouver B.C. Canada V6R 1W5  |      Fax: 604-228-5116



More information about the Comp.lang.c mailing list