]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer/profiling: hide profiling code behind guards
authorVictor Julien <vjulien@oisf.net>
Wed, 27 Apr 2022 14:49:24 +0000 (16:49 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 9 May 2022 14:06:39 +0000 (16:06 +0200)
src/app-layer.c

index 01be13c65d4a62708d91fbcd1acf4ebe01562f35..f7c55dcf7035da374949bc286453b10a7d59036d 100644 (file)
@@ -959,6 +959,7 @@ void AppLayerDestroyCtxThread(AppLayerThreadCtx *app_tctx)
     SCReturn;
 }
 
+#ifdef PROFILING
 void AppLayerProfilingResetInternal(AppLayerThreadCtx *app_tctx)
 {
     PACKET_PROFILING_APP_RESET(app_tctx);
@@ -968,6 +969,7 @@ void AppLayerProfilingStoreInternal(AppLayerThreadCtx *app_tctx, Packet *p)
 {
     PACKET_PROFILING_APP_STORE(app_tctx, p);
 }
+#endif
 
 /** \brief HACK to work around our broken unix manager (re)init loop
  */