PKGBUILDs/community/openimageio/fix-compiler-warning.patch

23 lines
726 B
Diff
Raw Normal View History

2015-10-02 18:01:03 +00:00
From 4e3371d2e37512c5fa8b1f297ad9af52417fec9e Mon Sep 17 00:00:00 2001
From: Larry Gritz <lg@larrygritz.com>
Date: Wed, 11 Feb 2015 15:27:40 -0800
Subject: [PATCH] Fix compiler warning about unused variable
---
src/ptex.imageio/ptex/PtexHalf.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ptex.imageio/ptex/PtexHalf.cpp b/src/ptex.imageio/ptex/PtexHalf.cpp
index a880971..3c17369 100644
--- a/src/ptex.imageio/ptex/PtexHalf.cpp
+++ b/src/ptex.imageio/ptex/PtexHalf.cpp
@@ -80,7 +80,7 @@ static bool PtexHalfInit()
return 1;
}
-static bool PtexHalfInitialized = PtexHalfInit();
+bool PtexHalfInitialized = PtexHalfInit();
/** Handle exceptional cases for half-to-float conversion */