This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[wwwdocs] Use global CSS in gcc-5/porting_to.html (and thus restore color on gcc.gnu.org)


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]