MFH: r499817

textproc/htmldoc: Add workaround for hangs when compiled with clang 8
This commit is contained in:
Antoine Brodin 2019-04-25 18:00:17 +00:00
parent aac47ec25f
commit c774ee9b16
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q2/; revision=500044

View File

@ -0,0 +1,15 @@
Workaround for potential optimizer bug in clang 8 that causes hangs at runtime
https://github.com/michaelrsweet/htmldoc/issues/349
--- htmldoc/ps-pdf.cxx.orig 2018-04-10 11:56:03 UTC
+++ htmldoc/ps-pdf.cxx
@@ -5361,7 +5361,7 @@ parse_pre(tree_t *t, /* I - Tree to parse */
line[10240],
*lineptr,
*dataptr;
- int col;
+ volatile int col;
float width,
height,
rgb[3];