You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gcc7, in its infinite braindeadedness, warns when a switch's case statement will fall through, and this causes 1 warning in regexp.c:
egexp.c:125:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 0: die("unterminated escape sequence");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In this case it's trivial to solve by adding:
; return 0
after the call to die(). It won't ever return, so the return is harmless.
That said: the use of die() makes this code ill-suited for use in a library :( - we can't kill the app just because a user inputs an invalid regex:
If you can tell that this code is public domain, MIT, or has a similar non-viral license, i will refactor it for use as a library and contribute the changes back to you.
The text was updated successfully, but these errors were encountered:
gcc7, in its infinite braindeadedness, warns when a switch's case statement will fall through, and this causes 1 warning in regexp.c:
In this case it's trivial to solve by adding:
after the call to
die()
. It won't ever return, so the return is harmless.That said: the use of
die()
makes this code ill-suited for use in a library :( - we can't kill the app just because a user inputs an invalid regex:If you can tell that this code is public domain, MIT, or has a similar non-viral license, i will refactor it for use as a library and contribute the changes back to you.
The text was updated successfully, but these errors were encountered: