Re: Tcl/Tk 9.0.0 rebase

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Garry T. Williams:

> On Saturday, 2 November 2024 23:24:50 EDT Garry T. Williams wrote:
>> I am trying to port deal to tcl 9.0.0 and I am stuck.
>> 
>> My package required many changes mostly changing certain int variables
>> to type Tcl_Size (aka long).  I got down to only one error compiling
>> any file that includes tcl.h.  My minimal test case is:
>> 
>>     #include <tcl.h>
>>     int main () {
>>         return 1;
>>     }
>> 
>> which produces this error when I copy the gcc command generated in
>> mock:
>> 
>>     In file included from foo.c:1:
>>     /var/lib/mock/fedora-rawhide-x86_64/root/usr/include/tcl.h:2553:14: error: expected ‘;’ before ‘void’
>>      2553 | static inline void
>>           |              ^~~~~
>>           |              ;
>
> Please disregard.
>
> I noticed this very old code was adding -ansi to the gcc command and
> that caused the error for some reason.

The -ansi option requests C89 mode, and C89 does not have an inline
keyword.  In C89, “static inline;” would have been a variable of type
int called “inline”, so the compiler's suggestion is technically
correct, but of course not very useful.

Thanks,
Florian

-- 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux