Ticket #8306: 0003-Conditionally-set-DEBUG-in-touchpad-preferences-if-i.patch

File 0003-Conditionally-set-DEBUG-in-touchpad-preferences-if-i.patch, 1.3 KB (added by umccullough, 12 years ago)
  • src/preferences/touchpad/TouchpadPref.h

    From af489285b902ce6518add5b4b3364a5688a8873a Mon Sep 17 00:00:00 2001
    From: Urias McCullough <umccullough@gmail.com>
    Date: Sat, 28 Jan 2012 21:11:08 -0800
    Subject: [PATCH 3/5] Conditionally set DEBUG in touchpad preferences if it isn't already defined
    
    * This allows building with DEBUG=2 and avoiding warnings.
    ---
     src/preferences/touchpad/TouchpadPref.h     |    4 +++-
     src/preferences/touchpad/TouchpadPrefView.h |    5 ++++-
     2 files changed, 7 insertions(+), 2 deletions(-)
    
    diff --git a/src/preferences/touchpad/TouchpadPref.h b/src/preferences/touchpad/TouchpadPref.h
    index 1bfe452..d2165a9 100644
    a b  
    88#ifndef TOUCHPAD_PREF_H
    99#define TOUCHPAD_PREF_H
    1010
     11#ifndef DEBUG
     12    #define DEBUG 1
     13#endif
    1114
    12 #define DEBUG 1
    1315#include <Debug.h>
    1416
    1517#include "touchpad_settings.h"
  • src/preferences/touchpad/TouchpadPrefView.h

    diff --git a/src/preferences/touchpad/TouchpadPrefView.h b/src/preferences/touchpad/TouchpadPrefView.h
    index 6e52598..ae5eba5 100644
    a b  
    2020#include "TouchpadPref.h"
    2121#include "touchpad_settings.h"
    2222
    23 #define DEBUG 1
     23#ifndef DEBUG
     24    #define DEBUG 1
     25#endif
     26
    2427#include <Debug.h>
    2528
    2629#if DEBUG