public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [wwwdocs] Use global CSS in gcc-5/porting_to.html (and thus restore color on gcc.gnu.org)
@ 2016-01-21 23:00 Gerald Pfeifer
  0 siblings, 0 replies; only message in thread
From: Gerald Pfeifer @ 2016-01-21 23:00 UTC (permalink / raw)
  To: gcc-patches

Per the exchange we had two days ago.

Applied.

Gerald

Index: gcc-5/porting_to.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-5/porting_to.html,v
retrieving revision 1.10
diff -u -r1.10 porting_to.html
--- gcc-5/porting_to.html	20 Apr 2015 22:12:57 -0000	1.10
+++ gcc-5/porting_to.html	21 Jan 2016 22:19:32 -0000
@@ -97,9 +97,9 @@
 <p>This example now gives the following diagnostic:</p>
 
 <pre>
-<b>f.c:1:12:</b> <b style='color:magenta'>warning:</b> inline function <b>'foo'</b> declared but never defined
+<b>f.c:1:12:</b> <span class="boldmagenta">warning:</span> inline function <b>'foo'</b> declared but never defined
    inline int foo (void);
-              <b style='color:lime'>^</b>
+              <span class="boldlime">^</span>
 </pre>
 
 <p>Furthermore, there is a difference between <code>extern inline</code> and
@@ -197,9 +197,9 @@
 <p>This example now gives the following diagnostic:</p>
 
 <pre>
-<b>w.c:4:10:</b> <b style='color:magenta'>warning:</b> implicit declaration of function <b>'bar'</b> [-Wimplicit-function-declaration]
+<b>w.c:4:10:</b> <span class="boldmagenta">warning:</span> implicit declaration of function <b>'bar'</b> [-Wimplicit-function-declaration]
    return bar ();
-          <b style='color:lime'>^</b>
+          <span class="boldlime">^</span>
 </pre>
 
 <p>To suppress this warning add the proper declaration:</p>
@@ -223,11 +223,11 @@
 <p>This example now gives the following diagnostic:</p>
 
 <pre>
-<b>q.c:1:1:</b> <b style='color:magenta'>warning:</b> return type defaults to <b>'int'</b> [-Wimplicit-int]
+<b>q.c:1:1:</b> <span class="boldmagenta">warning:</span> return type defaults to <b>'int'</b> [-Wimplicit-int]
    foo (u)
-   <b style='color:lime'>^</b>
+   <span class="boldlime">^</span>
 <b>q.c:</b> In function <b>'foo'</b>:
-<b>q.c:1:1:</b> <b style='color:magenta'>warning:</b> type of <b>'u'</b> defaults to <b>'int'</b> [-Wimplicit-int]
+<b>q.c:1:1:</b> <span class="boldmagenta">warning:</span> type of <b>'u'</b> defaults to <b>'int'</b> [-Wimplicit-int]
 </pre>
 
 <p>To suppress this warning just add the proper types:</p>
@@ -256,9 +256,9 @@
 <p>This example now gives the following diagnostic:</p>
 
 <pre>
-<b>q.c:4:3:</b> <b style='color:magenta'>warning:</b> <b>'return'</b> with no value, in function returning non-void
+<b>q.c:4:3:</b> <span class="boldmagenta">warning:</span> <b>'return'</b> with no value, in function returning non-void
    return;
-   <b style='color:lime'>^</b>
+   <span class="boldlime">^</span>
 </pre>
 
 <p>The fix is either to specify a proper return value, or to declare the return
@@ -280,17 +280,17 @@
 <p>We used to reject such code in C99/C11 mode:</p>
 
 <pre>
-<b>q.c:3:29:</b> <b style='color:red'>error:</b> initializer element is not constant
+<b>q.c:3:29:</b> <span class="boldred">error:</span> initializer element is not constant
    static struct S s = (struct S) { .t = { 42 } };
-                               <b style='color:lime'>^</b>
+                               <span class="boldlime">^</span>
 </pre>
 
 <p>Note that using <code>-Wpedantic</code> will cause a warning be emitted:</p>
 
 <pre>
-<b>q.c:3:29:</b> <b style='color:magenta'>warning:</b> initializer element is not constant [-Wpedantic]
+<b>q.c:3:29:</b> <span class="boldmagenta">warning:</span> initializer element is not constant [-Wpedantic]
    static struct S s = (struct S) { .t = { 42 } };
-                       <b style='color:lime'>^</b>
+                       <span class="boldlime">^</span>
 </pre>
 
 <h4><code>__STDC_VERSION__</code> macro</h4>
@@ -334,9 +334,9 @@
 </code></pre>
 
 <pre>
-<b>q.c:7:10:</b> <b style='color:magenta'>warning:</b> format <b>'%a'</b> expects argument of type <b>'float *'</b>, but argument 2 has type <b>'char **'</b> [-Wformat=]
+<b>q.c:7:10:</b> <span class="boldmagenta">warning:</span> format <b>'%a'</b> expects argument of type <b>'float *'</b>, but argument 2 has type <b>'char **'</b> [-Wformat=]
   scanf ("%as", &amp;s);
-         <b style='color:lime'>^</b>
+         <span class="boldlime">^</span>
 </pre>
 
 <p>To use the dynamic allocation conversion specifier in C99 and C11, specify
@@ -358,9 +358,9 @@
 </code></pre>
 
 <pre>
-<b>q.c:4:19:</b> <b style='color:magenta'>warning:</b> ISO C does not support <b>'__FUNCTION__'</b> predefined identifier [-Wpedantic]
+<b>q.c:4:19:</b> <span class="boldmagenta">warning:</span> ISO C does not support <b>'__FUNCTION__'</b> predefined identifier [-Wpedantic]
   const char *s = __FUNCTION__;
-                  <b style='color:lime'>^</b>
+                  <span class="boldlime">^</span>
 </pre>
 
 <p>The fix is either to use the standard predefined identifier <code>__func__</code>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-21 23:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-21 23:00 [wwwdocs] Use global CSS in gcc-5/porting_to.html (and thus restore color on gcc.gnu.org) Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).