https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119632

--- Comment #6 from James K. Lowden <jklowden at gcc dot gnu.org> ---
Taking a cue from Iain, the output is now:

$ gcobol OB/OBIC2A.cbl 
OB/OBIC2A.cbl:131:24: warning: SECTION segment ‘30.                            
                 ’ was ignored
  131 | 013000 SECT-IC219-0001 SECTION 30.                                     
OBIC24.2
      |                        ^

There is no provision as yet to suppress warnings.  That is on the TODO list.  

It was the case, briefly, that cbl_unimplmentedw (ending in 'w') was a warning
and not an error.  Now it uses DK_SORRY, which is documented not to produce an
object file. There are currently 11 uses of that function in the COBOL FE that
will need to be addressed along with other warning/error issues.  

This particular issue will be closed with the understanding that there remains
a need both to suppress warnings with -Wno- and to elevate them to errors with
-Werror.

Reply via email to