buglibffcall - foreign function call libraries - Bugs: bug #22035, va_return_* macros: warning: value...

 
 

bug #22035: va_return_* macros: warning: value computed is not used

Submitter:  Sam Steingold <sds>
Submitted:  Wed 16 Jan 2008 09:57:51 PM UTC
   
 
Category:  None Severity:  2 - Minor
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 10 Sep 2017 07:50:36 PM UTC, comment #1: 

Fixed in libffcall-2.0.

Bruno Haible <haible>
Group administrator
Wed 16 Jan 2008 09:57:51 PM UTC, original submission:  

when va_start_struct and va_return* are used in clisp/src/foreign.d, GCC issues warnings:

../src/foreign.d: In function 'do_va_start':
../src/foreign.d:3826: warning: value computed is not used
../src/foreign.d:3826: warning: value computed is not used
../src/foreign.d: In function 'do_va_return':
../src/foreign.d:3985: warning: value computed is not used
../src/foreign.d:3988: warning: value computed is not used
../src/foreign.d:3988: warning: value computed is not used
../src/foreign.d:3990: warning: value computed is not used
../src/foreign.d:3990: warning: value computed is not used
../src/foreign.d:3995: warning: value computed is not used
../src/foreign.d:3995: warning: value computed is not used
../src/foreign.d:3997: warning: value computed is not used
../src/foreign.d:3997: warning: value computed is not used
../src/foreign.d:4001: warning: value computed is not used
../src/foreign.d:4001: warning: value computed is not used
../src/foreign.d:4003: warning: value computed is not used
../src/foreign.d:4003: warning: value computed is not used
../src/foreign.d:4007: warning: value computed is not used
../src/foreign.d:4007: warning: value computed is not used
../src/foreign.d:4009: warning: value computed is not used
../src/foreign.d:4009: warning: value computed is not used
../src/foreign.d:4016: warning: value computed is not used
../src/foreign.d:4016: warning: value computed is not used
../src/foreign.d:4022: warning: value computed is not used
../src/foreign.d:4022: warning: value computed is not used
../src/foreign.d:4031: warning: value computed is not used
../src/foreign.d:4031: warning: value computed is not used
../src/foreign.d:4040: warning: value computed is not used
../src/foreign.d:4040: warning: value computed is not used
../src/foreign.d:4059: warning: value computed is not used
../src/foreign.d:4059: warning: value computed is not used
../src/foreign.d:4061: warning: value computed is not used
../src/foreign.d:4061: warning: value computed is not used
../src/foreign.d:4064: warning: value computed is not used
../src/foreign.d:4064: warning: value computed is not used
../src/foreign.d:4066: warning: value computed is not used
../src/foreign.d:4066: warning: value computed is not used
../src/foreign.d:4076: warning: value computed is not used
../src/foreign.d:4082: warning: value computed is not used
../src/foreign.d:4082: warning: value computed is not used

for each va_return_ macro:

../src/foreign.d:3985:      va_return_void(alist);
../src/foreign.d:3988:        va_return_schar(alist,*(sint8*)result_address);
../src/foreign.d:3990:        va_return_int(alist,*(sint8*)result_address);
../src/foreign.d:3995:        va_return_uchar(alist,*(uint8*)result_address);
../src/foreign.d:3997:        va_return_uint(alist,*(uint8*)result_address);
../src/foreign.d:4001:        va_return_short(alist,*(sint16*)result_address);
../src/foreign.d:4003:        va_return_int(alist,*(sint16*)result_address);
../src/foreign.d:4007:        va_return_ushort(alist,*(uint16*)result_address);
../src/foreign.d:4009:        va_return_uint(alist,*(uint16*)result_address);
../src/foreign.d:4016:      va_return_int(alist,*(int*)result_address);
../src/foreign.d:4022:      va_return_uint(alist,*(unsigned int *)result_address);
../src/foreign.d:4031:      va_return_long(alist,*(long*)result_address);
../src/foreign.d:4040:      va_return_ulong(alist,*(unsigned long *)result_address);
../src/foreign.d:4045:      va_return_longlong(alist,*(sint64*)result_address);
../src/foreign.d:4047:      va_return_ulonglong(alist,*(uint64*)result_address);../src/foreign.d:4051:      va_return_struct(alist,struct_sint64,*(struct_sint64*)result_address);
../src/foreign.d:4053:      va_return_struct(alist,struct_uint64,*(struct_uint64*)result_address);
../src/foreign.d:4059:        va_return_float(alist,*(float*)result_address);
../src/foreign.d:4061:        va_return_double(alist,*(float*)result_address);
../src/foreign.d:4064:      va_return_double(alist,*(double*)result_address);
../src/foreign.d:4066:      va_return_ptr(alist,void*,*(void**)result_address);
../src/foreign.d:4076:      _va_return_struct(alist,result_size,result_alignment,result_address);
../src/foreign.d:4082:      va_return_ptr(alist,void*,*(void**)result_address);

Sam Steingold <sds>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by sds (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2017-09-10 haible StatusNone Fixed
        Open/ClosedOpen Closed
    2016-12-29 haible Severity3 - Normal 2 - Minor
    2010-07-13 sds StatusReady For Test None
    2010-07-13 sds StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code