summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiovanni2021-08-02 20:29:20 +0200
committerjvoisin2021-08-02 20:29:39 +0200
commit1180a211e4672994b0f8c7bc57186d11245595ec (patch)
tree74c84dbe3a37c0e62b75a41a4d9d040c2db13fe1 /src
parente17f7f0c664b46fe6c3593115f1889c853b08794 (diff)
Fix warning when SP_HAS_PCRE2 is not defined (#397)
Diffstat (limited to 'src')
-rw-r--r--src/sp_pcre_compat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sp_pcre_compat.c b/src/sp_pcre_compat.c
index 3bd00ca..203fb7a 100644
--- a/src/sp_pcre_compat.c
+++ b/src/sp_pcre_compat.c
@@ -3,8 +3,10 @@
3inline void sp_pcre_free(sp_pcre* regexp) { 3inline void sp_pcre_free(sp_pcre* regexp) {
4#ifdef SP_HAS_PCRE2 4#ifdef SP_HAS_PCRE2
5 pcre2_code_free(regexp); 5 pcre2_code_free(regexp);
6 regexp = NULL;
7#else
8 (void)regexp;
6#endif 9#endif
7 regexp = NULL;
8} 10}
9 11
10sp_pcre* sp_pcre_compile(const char* const pattern) { 12sp_pcre* sp_pcre_compile(const char* const pattern) {