Re: The Scope and Ownership of fedora-list

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

 



On Fri, 2008-08-29 at 01:06 +0800, Fennix wrote:
> 
> 
> On Fri, Aug 29, 2008 at 12:09 AM, Mike Chambers <mike@xxxxxxxxxx>
> wrote:
>         On Thu, 2008-08-28 at 10:32 -0500, Mike McCarty wrote:
>         
>         > It's (traditional) C. Put it into a file like self-rep.c and
>         then
>         >
>         > $ gcc -o self-rep self-rep.c
>         > $ ./self-rep
>         >
>         > and see what happens.
>         
>         
>         [mike@scrappy ~]$ gcc -o test test.c
>         test.c:1: warning: data definition has no type or storage
>         class
>         test.c:1: warning: initialization makes integer from pointer
>         without a
>         cast
>         test.c: In function 'main':
>         test.c:1: warning: incompatible implicit declaration of
>         built-in
>         function 'printf'
>         test.c:1: warning: passing argument 1 of 'printf' makes
>         pointer from
>         integer without a cast
>         [mike@scrappy ~]$ ./test
>         p="p=%c%s%
>         c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}[mike@scrappy
>         ~]$
>         
>         That's what happened when doing it on a F9 box.
>         
>         --
>         Mike Chambers
>         Fedora Project - Ambassador, Bug Zapper, Tester, User, etc..
>         mikec302@xxxxxxxxxxxxxxxxx
>         
>         
>         
>         --
>         fedora-list mailing list
>         fedora-list@xxxxxxxxxx
>         To unsubscribe:
>         https://www.redhat.com/mailman/listinfo/fedora-list
>         Guidelines:
>         http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>         
> 
> Hmmm... c++  vs  standard C?

It's not C++. The compiler warnings are because it violates the current
C standard regarding type safety. It would have compiled on a Unix
system 25 years ago without complaint, but now you'd need to add flags
to the gcc line to make it shut up.

poc


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux