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

 
 

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

Submitted by:  Sam Steingold <sds>
Submitted on:  Wed 16 Jan 2008 09:57:51 PM UTC  
 
Category:  None Severity:  2 - Minor
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  Bruno Haible <haible>
Open/Closed:  Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Fixed in libffcall-2.0.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
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>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Sun 10 Sep 2017 07:50:36 PM UTC haible StatusNone => Fixed
        Open/ClosedOpen => Closed
    Thu 29 Dec 2016 02:47:55 AM UTC haible Severity3 - Normal => 2 - Minor
    Tue 13 Jul 2010 05:56:22 PM UTC sds StatusReady For Test => None
    Tue 13 Jul 2010 05:55:58 PM UTC sds StatusNone => Ready For Test

    Back to the top


    Powered by Savane 3.3