Ticket #8306: 0002-Conditionally-set-DEBUG-if-it-isn-t-already-defined-.patch

File 0002-Conditionally-set-DEBUG-if-it-isn-t-already-defined-.patch, 850 bytes (added by umccullough, 12 years ago)
  • src/apps/icon-o-matic/generic/selection/Selection.cpp

    From 953b2391d5c3d382993f04b1eca4a0d5aa506e72 Mon Sep 17 00:00:00 2001
    From: Urias McCullough <umccullough@gmail.com>
    Date: Sat, 28 Jan 2012 21:07:27 -0800
    Subject: [PATCH 2/5] Conditionally set DEBUG if it isn't already defined in I-O-M
    
    * This allows building with DEBUG=2 and avoiding warnings.
    ---
     .../icon-o-matic/generic/selection/Selection.cpp   |    4 +++-
     1 files changed, 3 insertions(+), 1 deletions(-)
    
    diff --git a/src/apps/icon-o-matic/generic/selection/Selection.cpp b/src/apps/icon-o-matic/generic/selection/Selection.cpp
    index 03f9137..ae2fb3c 100644
    a b  
    1414
    1515#include "Selectable.h"
    1616
    17 #define DEBUG 1
     17#ifndef DEBUG
     18    #define DEBUG 1
     19#endif
    1820
    1921// constructor
    2022Selection::Selection()