[bug #63737] Add --fail-on-undefined-variables

2023-02-01 Thread Thomas Güttler
URL:
  

 Summary: Add --fail-on-undefined-variables
 Project: make
   Submitter: guettli
   Submitted: Wed 01 Feb 2023 02:49:27 PM UTC
Severity: 3 - Normal
  Item Group: None
  Status: None
 Privacy: Public
 Assigned to: None
 Open/Closed: Open
 Discussion Lock: Any
   Component Version: None
Operating System: None
   Fixed Release: None
   Triage Status: None


___

Follow-up Comments:


---
Date: Wed 01 Feb 2023 02:49:27 PM UTC By: Thomas Güttler 
I now `--warn-undefined-variables`, but warnings get easily overlooked.

I want to be sure that no undefined variables get used in my makefile.

Why not implement a `--fail-on-undefined-variables`?

Related:
https://stackoverflow.com/questions/75311765/let-make-fail-if-makefile-encounters-undefined-variable







___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




[bug #63737] Add --fail-on-undefined-variables

2023-02-01 Thread Paul D. Smith
Update of bug #63737 (project make):

  Status:None => Duplicate  
 Open/Closed:Open => Closed 

___

Follow-up Comment #1:

Hi; thanks for the suggestion.  This is a duplicate of bug #63686

Cheers!


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




[bug #63737] Add --fail-on-undefined-variables

2023-02-01 Thread Thomas Güttler
Follow-up Comment #2, bug #63737 (project make):

Thank you for comment.

Making all warnings a failure, is even better.


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




[bug #63686] implement a flag to promote make warnings to fatal errors

2023-02-01 Thread Thomas Güttler
Follow-up Comment #2, bug #63686 (project make):

[comment #0 original submission:]
> GCC has a -Werror option causing warnings to be promoted to fatal errors
which I (and my organization) find very useful. As a matter of policy we
always build with -Werror on and while this, obviously, is painful to start
with it leads to a much calmer working environment once cruising altitude is
reached. We find new issues much quicker since new warnings aren't
interspersed with hundreds of pre-existing ones.


Same here. Every automated way to get better quality help us in the long run.

It would help us if we could promote warnings to fatal errors.

For example:

> Makefile:118: Warnung: undefinierte Variable „FOO“




___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/