Launch daemon: fix some unused variables
Used for tracing only, so mark them as unused when tracing is disabled. Change-Id: I76acb0f18ccab12512eaa4b2644e9d57c591b9ef Reviewed-on: https://review.haiku-os.org/c/haiku/+/6740 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
This commit is contained in:
parent
2a7d6a9850
commit
699bc5363f
@ -51,8 +51,10 @@
|
||||
|
||||
#ifdef DEBUG
|
||||
# define TRACE(x, ...) debug_printf(x, __VA_ARGS__)
|
||||
# define TRACE_ONLY
|
||||
#else
|
||||
# define TRACE(x, ...) ;
|
||||
# define TRACE_ONLY __attribute__((unused))
|
||||
#endif
|
||||
|
||||
|
||||
@ -441,7 +443,7 @@ status_t
|
||||
LaunchDaemon::RegisterExternalEvent(Event* event, const char* name,
|
||||
const BStringList& arguments)
|
||||
{
|
||||
status_t status = B_NAME_NOT_FOUND;
|
||||
status_t status TRACE_ONLY = B_NAME_NOT_FOUND;
|
||||
for (EventMap::iterator iterator = fEvents.begin();
|
||||
iterator != fEvents.end(); iterator++) {
|
||||
ExternalEventSource* eventSource = iterator->second;
|
||||
|
Loading…
Reference in New Issue
Block a user