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 <[email protected]> Reviewed-by: Fredrik Holmqvist <[email protected]>
This commit is contained in:
@@ -51,8 +51,10 @@
|
|||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
# define TRACE(x, ...) debug_printf(x, __VA_ARGS__)
|
# define TRACE(x, ...) debug_printf(x, __VA_ARGS__)
|
||||||
|
# define TRACE_ONLY
|
||||||
#else
|
#else
|
||||||
# define TRACE(x, ...) ;
|
# define TRACE(x, ...) ;
|
||||||
|
# define TRACE_ONLY __attribute__((unused))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -441,7 +443,7 @@ status_t
|
|||||||
LaunchDaemon::RegisterExternalEvent(Event* event, const char* name,
|
LaunchDaemon::RegisterExternalEvent(Event* event, const char* name,
|
||||||
const BStringList& arguments)
|
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();
|
for (EventMap::iterator iterator = fEvents.begin();
|
||||||
iterator != fEvents.end(); iterator++) {
|
iterator != fEvents.end(); iterator++) {
|
||||||
ExternalEventSource* eventSource = iterator->second;
|
ExternalEventSource* eventSource = iterator->second;
|
||||||
|
|||||||
Reference in New Issue
Block a user