Project

General

Profile

Bug #8794

cstyle generates warnings with recent perl

Added by Andy Fiddaman almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2017-11-10
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

As of perl 5.26, unescaped left braces in a regex generate warnings. cstyle has a number of places where this is a problem and is generally inconsistent in escaping curly braces.

==== cstyle/hdrchk errors ====
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(?:(?:\b(?:enum|struct|union)\s*[^\{]*)|
(?:\s+=\s*)){ <-- HERE / at /build/illumos-omnios/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/cstyle line 819.

History

#1

Updated by Electric Monk almost 2 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit 578f67364c19b20450a4783ebeae776c9e900185

commit  578f67364c19b20450a4783ebeae776c9e900185
Author: Dominik Hassler <hadfl@omniosce.org>
Date:   2017-11-16T15:43:41.000Z

    8794 cstyle generates warnings with recent perl
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF