[babl] mask out unwanted formats with if(0) {...}



commit c440e111aa9283afba3446002cca19c4f23d2d12
Author: Nils Philippsen <nils redhat com>
Date:   Thu May 26 22:50:57 2011 +0200

    mask out unwanted formats with if(0) {...}
    
    premature return statements make source code checkers unhappy

 babl/base/model-ycbcr.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/babl/base/model-ycbcr.c b/babl/base/model-ycbcr.c
index 13f3581..6a6370e 100644
--- a/babl/base/model-ycbcr.c
+++ b/babl/base/model-ycbcr.c
@@ -253,8 +253,10 @@ formats (void)
     babl_sampling (2, 2),
     babl_component_from_id (BABL_CR),
     NULL);
-  return;
 
+/* deactivate these for now */
+if (0)
+{
   babl_format_new (
     "name", "y'cbcr420",
     "id", BABL_YCBCR420,
@@ -301,3 +303,4 @@ formats (void)
     babl_component_from_id (BABL_CR),
     NULL);
 }
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]