[Clfs-commits] [Cross-LFS]Cross-LFS Book branch, master, updated. clfs-3.0.0-systemd-148-gcc14b18

git git at clfs.org
Sun Sep 6 21:43:35 PDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cross-LFS Book".

The branch, master has been updated
       via  cc14b187e737f8f92498dfe3e02c1ea660711bf6 (commit)
      from  e1840302e88ad6a8fb83c6823272174326a81b88 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cc14b187e737f8f92498dfe3e02c1ea660711bf6
Author: William Harrington <kb0iic at berzerkula.org>
Date:   Sun Sep 6 23:43:17 2015 -0500

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

diff --git a/BOOK/final-system/common/adjusting.xml b/BOOK/final-system/common/adjusting.xml
index 1c71312..3f60493 100644
--- a/BOOK/final-system/common/adjusting.xml
+++ b/BOOK/final-system/common/adjusting.xml
@@ -33,7 +33,7 @@ perl -p -e 's@/tools/lib/ld@/lib/ld at g;' \
     are working as expected. To do this, perform a sanity
     check:</para>
 
-<screen os="g"><userinput>echo 'main(){}' > dummy.c
+<screen os="g"><userinput>echo 'int main(){}' > dummy.c
 gcc dummy.c
 readelf -l a.out | grep ': /lib'</userinput></screen>
 
diff --git a/BOOK/final-system/mips64/adjusting.xml b/BOOK/final-system/mips64/adjusting.xml
index bc7e7b9..4271ad3 100644
--- a/BOOK/final-system/mips64/adjusting.xml
+++ b/BOOK/final-system/mips64/adjusting.xml
@@ -49,7 +49,7 @@ perl -p -e 's@/tools/lib/ld@/lib/ld at g;' \
 
     <para>For N32 ABI:</para>
 
-<screen><userinput>echo 'main(){}' > dummy.c
+<screen><userinput>echo 'int main(){}' > dummy.c
 gcc ${BUILDN32} dummy.c
 readelf -l a.out | grep ': /lib'</userinput></screen>
 
diff --git a/BOOK/final-system/multilib/adjusting.xml b/BOOK/final-system/multilib/adjusting.xml
index 439eb1e..7465a34 100644
--- a/BOOK/final-system/multilib/adjusting.xml
+++ b/BOOK/final-system/multilib/adjusting.xml
@@ -32,7 +32,7 @@ perl -p -e 's@/tools/lib/ld@/lib/ld at g;' \
 
     <para os="m2">For 32 bit ABI:</para>
 
-<screen os="m3"><userinput>echo 'main(){}' > dummy.c
+<screen os="m3"><userinput>echo 'int main(){}' > dummy.c
 gcc ${BUILD32} dummy.c
 readelf -l a.out | grep ': /lib'</userinput></screen>
 
diff --git a/BOOK/prologue/common/hostreqs.xml b/BOOK/prologue/common/hostreqs.xml
index 15f55ee..952d860 100644
--- a/BOOK/prologue/common/hostreqs.xml
+++ b/BOOK/prologue/common/hostreqs.xml
@@ -133,7 +133,7 @@ sed --version | head -n1
 tar --version | head -n1
 makeinfo --version | head -n1
 xz --version | head -n1
-echo 'main(){}' | gcc -v -o /dev/null -x c - > dummy.log 2>&1
+echo 'int main(){}' | gcc -v -o /dev/null -x c - > dummy.log 2>&1
 if ! grep -q ' error' dummy.log; then
   echo "Compilation successful" && rm dummy.log
 else

-----------------------------------------------------------------------

Summary of changes:
 BOOK/final-system/common/adjusting.xml   |    2 +-
 BOOK/final-system/mips64/adjusting.xml   |    2 +-
 BOOK/final-system/multilib/adjusting.xml |    2 +-
 BOOK/prologue/common/hostreqs.xml        |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
Cross-LFS Book



More information about the Clfs-commits mailing list