public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH v2] gcc-14: Mention that some warnings are now errors
@ 2024-04-15  6:05 Sebastian Huber
  2024-04-24 12:28 ` Sebastian Huber
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Huber @ 2024-04-15  6:05 UTC (permalink / raw)
  To: GCC Patches

---
v2: Remove listing of options.

 htdocs/gcc-14/changes.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index 8ac08e9a..665d050a 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -231,6 +231,8 @@ a work-in-progress.</p>
   previous options <code>-std=c2x</code>, <code>-std=gnu2x</code>
   and <code>-Wc11-c2x-compat</code>, which are deprecated but remain
   supported.</li>
+  <li>Some warnings are now errors by default (see also
+  <a href="porting_to.html">Porting to GCC 14</a>).</li>
 </ul>
 
 <h3 id="cxx">C++</h3>
-- 
2.35.3


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] gcc-14: Mention that some warnings are now errors
  2024-04-15  6:05 [PATCH v2] gcc-14: Mention that some warnings are now errors Sebastian Huber
@ 2024-04-24 12:28 ` Sebastian Huber
  2024-05-02 14:29   ` Sebastian Huber
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Huber @ 2024-04-24 12:28 UTC (permalink / raw)
  To: GCC Patches

----- Am 15. Apr 2024 um 8:05 schrieb Sebastian Huber sebastian.huber@embedded-brains.de:

> ---
> v2: Remove listing of options.
> 
> htdocs/gcc-14/changes.html | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
> index 8ac08e9a..665d050a 100644
> --- a/htdocs/gcc-14/changes.html
> +++ b/htdocs/gcc-14/changes.html
> @@ -231,6 +231,8 @@ a work-in-progress.</p>
>   previous options <code>-std=c2x</code>, <code>-std=gnu2x</code>
>   and <code>-Wc11-c2x-compat</code>, which are deprecated but remain
>   supported.</li>
> +  <li>Some warnings are now errors by default (see also
> +  <a href="porting_to.html">Porting to GCC 14</a>).</li>
> </ul>
> 
> <h3 id="cxx">C++</h3>
> --
> 2.35.3

Ping.

-- 
embedded brains GmbH & Co. KG
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] gcc-14: Mention that some warnings are now errors
  2024-04-24 12:28 ` Sebastian Huber
@ 2024-05-02 14:29   ` Sebastian Huber
  2024-05-03 15:06     ` Jonathan Wakely
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Huber @ 2024-05-02 14:29 UTC (permalink / raw)
  To: GCC Patches

On 24.04.24 14:28, Sebastian Huber wrote:
> ----- Am 15. Apr 2024 um 8:05 schrieb Sebastian Huber sebastian.huber@embedded-brains.de:
> 
>> ---
>> v2: Remove listing of options.
>>
>> htdocs/gcc-14/changes.html | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
>> index 8ac08e9a..665d050a 100644
>> --- a/htdocs/gcc-14/changes.html
>> +++ b/htdocs/gcc-14/changes.html
>> @@ -231,6 +231,8 @@ a work-in-progress.</p>
>>    previous options <code>-std=c2x</code>, <code>-std=gnu2x</code>
>>    and <code>-Wc11-c2x-compat</code>, which are deprecated but remain
>>    supported.</li>
>> +  <li>Some warnings are now errors by default (see also
>> +  <a href="porting_to.html">Porting to GCC 14</a>).</li>
>> </ul>
>>
>> <h3 id="cxx">C++</h3>
>> --
>> 2.35.3
> 
> Ping.

I think it would be helpful to reference this change in the C section. 
This warning to error change causes some issues with legacy software.

-- 
embedded brains GmbH & Co. KG
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] gcc-14: Mention that some warnings are now errors
  2024-05-02 14:29   ` Sebastian Huber
@ 2024-05-03 15:06     ` Jonathan Wakely
  2024-05-03 16:06       ` Jakub Jelinek
  2024-05-03 17:02       ` Sebastian Huber
  0 siblings, 2 replies; 7+ messages in thread
From: Jonathan Wakely @ 2024-05-03 15:06 UTC (permalink / raw)
  To: Sebastian Huber; +Cc: GCC Patches, fweimer

On 02/05/24 16:29 +0200, Sebastian Huber wrote:
>On 24.04.24 14:28, Sebastian Huber wrote:
>>----- Am 15. Apr 2024 um 8:05 schrieb Sebastian Huber sebastian.huber@embedded-brains.de:
>>
>>>---
>>>v2: Remove listing of options.
>>>
>>>htdocs/gcc-14/changes.html | 2 ++
>>>1 file changed, 2 insertions(+)
>>>
>>>diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
>>>index 8ac08e9a..665d050a 100644
>>>--- a/htdocs/gcc-14/changes.html
>>>+++ b/htdocs/gcc-14/changes.html
>>>@@ -231,6 +231,8 @@ a work-in-progress.</p>
>>>   previous options <code>-std=c2x</code>, <code>-std=gnu2x</code>
>>>   and <code>-Wc11-c2x-compat</code>, which are deprecated but remain
>>>   supported.</li>
>>>+  <li>Some warnings are now errors by default (see also
>>>+  <a href="porting_to.html">Porting to GCC 14</a>).</li>
>>></ul>
>>>
>>><h3 id="cxx">C++</h3>
>>>--
>>>2.35.3
>>
>>Ping.
>
>I think it would be helpful to reference this change in the C section. 
>This warning to error change causes some issues with legacy software.

I agree it should be mentioned, but I would put it in the caveats
section at the top, not as the last item of the C section.

How about this? OK for wwwdocs?

-- >8 --

commit fe5fd75ea5a7a08eee0831cadbdd05689e9408db
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri May 3 16:04:49 2024 +0100

     Add caveat to GCC 14 release notes about C warnings-as-errors change

diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index 46a0266d..82906de1 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -40,6 +40,11 @@ a work-in-progress.</p>
        <a href="https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wflex-array-member-not-at-end"><code>-Wflex-array-member-not-at-end</code></a> to
        identify all such cases in the source code and modify them.
    </li>
+  <li><strong>C:</strong>
+      Certain warnings about are now errors, see
+      <a href="porting_to.html#warnings-as-errors">Porting to GCC 14</a>
+      for details.
+  </li>
    <li><a href="https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html"><code>-fcf-protection=[full|branch|return|none|check]</code></a>
        is refactored, to override <code>-fcf-protection</code>,
        <code>-fcf-protection=none</code> needs to be added and then


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] gcc-14: Mention that some warnings are now errors
  2024-05-03 15:06     ` Jonathan Wakely
@ 2024-05-03 16:06       ` Jakub Jelinek
  2024-05-03 17:02       ` Sebastian Huber
  1 sibling, 0 replies; 7+ messages in thread
From: Jakub Jelinek @ 2024-05-03 16:06 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: Sebastian Huber, GCC Patches, fweimer

On Fri, May 03, 2024 at 04:06:28PM +0100, Jonathan Wakely wrote:
> I agree it should be mentioned, but I would put it in the caveats
> section at the top, not as the last item of the C section.
> 
> How about this? OK for wwwdocs?

LGTM.

> commit fe5fd75ea5a7a08eee0831cadbdd05689e9408db
> Author: Jonathan Wakely <jwakely@redhat.com>
> Date:   Fri May 3 16:04:49 2024 +0100
> 
>     Add caveat to GCC 14 release notes about C warnings-as-errors change
> 
> diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
> index 46a0266d..82906de1 100644
> --- a/htdocs/gcc-14/changes.html
> +++ b/htdocs/gcc-14/changes.html
> @@ -40,6 +40,11 @@ a work-in-progress.</p>
>        <a href="https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wflex-array-member-not-at-end"><code>-Wflex-array-member-not-at-end</code></a> to
>        identify all such cases in the source code and modify them.
>    </li>
> +  <li><strong>C:</strong>
> +      Certain warnings about are now errors, see
> +      <a href="porting_to.html#warnings-as-errors">Porting to GCC 14</a>
> +      for details.
> +  </li>
>    <li><a href="https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html"><code>-fcf-protection=[full|branch|return|none|check]</code></a>
>        is refactored, to override <code>-fcf-protection</code>,
>        <code>-fcf-protection=none</code> needs to be added and then

	Jakub


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] gcc-14: Mention that some warnings are now errors
  2024-05-03 15:06     ` Jonathan Wakely
  2024-05-03 16:06       ` Jakub Jelinek
@ 2024-05-03 17:02       ` Sebastian Huber
  2024-05-03 17:52         ` Florian Weimer
  1 sibling, 1 reply; 7+ messages in thread
From: Sebastian Huber @ 2024-05-03 17:02 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: GCC Patches, fweimer

On 03.05.24 17:06, Jonathan Wakely wrote:
>> I think it would be helpful to reference this change in the C section. 
>> This warning to error change causes some issues with legacy software.
> 
> I agree it should be mentioned, but I would put it in the caveats
> section at the top, not as the last item of the C section.
> 
> How about this? OK for wwwdocs?

This is fine for me as well, thanks.

-- 
embedded brains GmbH & Co. KG
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] gcc-14: Mention that some warnings are now errors
  2024-05-03 17:02       ` Sebastian Huber
@ 2024-05-03 17:52         ` Florian Weimer
  0 siblings, 0 replies; 7+ messages in thread
From: Florian Weimer @ 2024-05-03 17:52 UTC (permalink / raw)
  To: Sebastian Huber; +Cc: Jonathan Wakely, GCC Patches

* Sebastian Huber:

> On 03.05.24 17:06, Jonathan Wakely wrote:
>>> I think it would be helpful to reference this change in the C
>>> section. This warning to error change causes some issues with
>>> legacy software.
>> I agree it should be mentioned, but I would put it in the caveats
>> section at the top, not as the last item of the C section.
>> How about this? OK for wwwdocs?
>
> This is fine for me as well, thanks.

For me as well.

Thanks,
Florian


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-03 17:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-15  6:05 [PATCH v2] gcc-14: Mention that some warnings are now errors Sebastian Huber
2024-04-24 12:28 ` Sebastian Huber
2024-05-02 14:29   ` Sebastian Huber
2024-05-03 15:06     ` Jonathan Wakely
2024-05-03 16:06       ` Jakub Jelinek
2024-05-03 17:02       ` Sebastian Huber
2024-05-03 17:52         ` Florian Weimer

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).