Changeset cc14b18


Ignore:
Timestamp:
Sep 6, 2015, 9:43:17 PM (4 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
master, systemd
Children:
794f16a
Parents:
e184030
Message:

Add int to main since GCC 5 returns defaults to int [-Wimplicit-int]. Suppress the warning.

Location:
BOOK
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/adjusting.xml

    re184030 rcc14b18  
    3434    check:</para>
    3535
    36 <screen os="g"><userinput>echo 'main(){}' &gt; dummy.c
     36<screen os="g"><userinput>echo 'int main(){}' &gt; dummy.c
    3737gcc dummy.c
    3838readelf -l a.out | grep ': /lib'</userinput></screen>
  • BOOK/final-system/mips64/adjusting.xml

    re184030 rcc14b18  
    5050    <para>For N32 ABI:</para>
    5151
    52 <screen><userinput>echo 'main(){}' &gt; dummy.c
     52<screen><userinput>echo 'int main(){}' &gt; dummy.c
    5353gcc ${BUILDN32} dummy.c
    5454readelf -l a.out | grep ': /lib'</userinput></screen>
  • BOOK/final-system/multilib/adjusting.xml

    re184030 rcc14b18  
    3333    <para os="m2">For 32 bit ABI:</para>
    3434
    35 <screen os="m3"><userinput>echo 'main(){}' &gt; dummy.c
     35<screen os="m3"><userinput>echo 'int main(){}' &gt; dummy.c
    3636gcc ${BUILD32} dummy.c
    3737readelf -l a.out | grep ': /lib'</userinput></screen>
  • BOOK/prologue/common/hostreqs.xml

    re184030 rcc14b18  
    134134makeinfo --version | head -n1
    135135xz --version | head -n1
    136 echo 'main(){}' | gcc -v -o /dev/null -x c - &gt; dummy.log 2>&amp;1
     136echo 'int main(){}' | gcc -v -o /dev/null -x c - &gt; dummy.log 2>&amp;1
    137137if ! grep -q ' error' dummy.log; then
    138138  echo "Compilation successful" &amp;&amp; rm dummy.log
Note: See TracChangeset for help on using the changeset viewer.