Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2021-02-23 18:55:11 +0000
committerTom Lane2021-02-23 18:55:34 +0000
commit3db05e76f92846d4b54d7de251b0875cf1e23aa4 (patch)
treea0dc4a46b5582bce6a4f54627d1c85eb4d51b33d /src/backend/regex/regcomp.c
parentd9d076222f5b94a85e0e318339cfc44b8f26022d (diff)
Suppress compiler warning in new regex match-all detection code.
gcc 10 is smart enough to notice that control could reach this "hasmatch[depth]" assignment with depth < 0, but not smart enough to know that that would require a badly broken NFA graph. Change the assert() to a plain runtime test to shut it up. Per report from Andres Freund. Discussion: https://postgr.es/m/20210223173437.b3ywijygsy6q42gq@alap3.anarazel.de
Diffstat (limited to 'src/backend/regex/regcomp.c')
0 files changed, 0 insertions, 0 deletions