Project

General

Profile

Bug #12155

libdemangle: variable 'result' might be clobbered by 'longjmp' or 'vfork'

Added by Toomas Soome 3 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Build error with gcc 9:

    ../common/cxx.c: In function 'cpp_demangle':
    ../common/cxx.c:170:8: error: variable 'result' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
      170 |  char *result = NULL;
          |        ^~~~~~
    cc1: all warnings being treated as errors

Mark it volatile should do there.

Also available in: Atom PDF