Newer
Older
Import / applications / MakePDF / 3rdParty / libharu-with-PRs / pr-patches / 0001-hpdf_pages.c-delete-double-defined-values.patch
From 67f9258d6ffae6dd9743e7407e9fa0e72ca661e5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Viktor=20Szak=C3=A1ts?= <vszakats@users.noreply.github.com>
Date: Mon, 23 Mar 2015 18:43:19 +0100
Subject: [PATCH] hpdf_pages.c: delete double defined values

Fixes:
2x: warning C6244: Local declaration of 'DEF_RGB_COLOR' hides previous declaration
2x: warning C6244: Local declaration of 'DEF_CMYK_COLOR' hides previous declaration
---
 src/hpdf_pages.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/hpdf_pages.c b/src/hpdf_pages.c
index 1dc2da0..f4427fc 100644
--- a/src/hpdf_pages.c
+++ b/src/hpdf_pages.c
@@ -1261,8 +1261,6 @@ HPDF_Page_GetTextRise  (HPDF_Page   page)
 HPDF_EXPORT(HPDF_RGBColor)
 HPDF_Page_GetRGBFill  (HPDF_Page   page)
 {
-    HPDF_RGBColor DEF_RGB_COLOR = {0, 0, 0};
-
     HPDF_PTRACE((" HPDF_Page_GetRGBFill\n"));
 
     if (HPDF_Page_Validate (page)) {
@@ -1279,8 +1277,6 @@ HPDF_Page_GetRGBFill  (HPDF_Page   page)
 HPDF_EXPORT(HPDF_RGBColor)
 HPDF_Page_GetRGBStroke  (HPDF_Page   page)
 {
-    HPDF_RGBColor DEF_RGB_COLOR = {0, 0, 0};
-
     HPDF_PTRACE((" HPDF_Page_GetRGBStroke\n"));
 
     if (HPDF_Page_Validate (page)) {
@@ -1296,8 +1292,6 @@ HPDF_Page_GetRGBStroke  (HPDF_Page   page)
 HPDF_EXPORT(HPDF_CMYKColor)
 HPDF_Page_GetCMYKFill  (HPDF_Page   page)
 {
-    HPDF_CMYKColor DEF_CMYK_COLOR = {0, 0, 0, 0};
-
     HPDF_PTRACE((" HPDF_Page_GetCMYKFill\n"));
 
     if (HPDF_Page_Validate (page)) {
@@ -1314,8 +1308,6 @@ HPDF_Page_GetCMYKFill  (HPDF_Page   page)
 HPDF_EXPORT(HPDF_CMYKColor)
 HPDF_Page_GetCMYKStroke  (HPDF_Page   page)
 {
-    HPDF_CMYKColor DEF_CMYK_COLOR = {0, 0, 0, 0};
-
     HPDF_PTRACE((" HPDF_Page_GetCMYKStroke\n"));
 
     if (HPDF_Page_Validate (page)) {
@@ -2321,4 +2313,3 @@ HPDF_Page_SetFilter  (HPDF_Page    page,
     attr = (HPDF_PageAttr)page->attr;
     attr->contents->filter = filter;
 }
-
-- 
2.21.1 (Apple Git-122.3)