From 7d3f0bfd7507dde66cf7c041883a9c1b21f898b9 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 31 Aug 2014 07:50:17 +0200 Subject: [PATCH] prepare for clang static analysis of RT-functions: see: https://github.com/fundamental/stoat eventually more functions should be annotated, and a common header file should be used to #define REALTIME __attribute__((annotate("realtime"))) --- libs/ardour/audioengine.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index 6c9fd442fb..ab99ccbda3 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -170,6 +170,9 @@ AudioEngine::buffer_size_change (pframes_t bufsiz) /** Method called by our ::process_thread when there is work to be done. * @param nframes Number of frames to process. */ +#ifdef __clang__ +__attribute__((annotate("realtime"))) +#endif int AudioEngine::process_callback (pframes_t nframes) {