summaryrefslogtreecommitdiff
path: root/graphics/libfpx/files
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libfpx/files')
-rw-r--r--graphics/libfpx/files/Makefile.bsd2
-rw-r--r--graphics/libfpx/files/patch-warnings20
2 files changed, 21 insertions, 1 deletions
diff --git a/graphics/libfpx/files/Makefile.bsd b/graphics/libfpx/files/Makefile.bsd
index 7565642489e7..783c645f5a89 100644
--- a/graphics/libfpx/files/Makefile.bsd
+++ b/graphics/libfpx/files/Makefile.bsd
@@ -2,7 +2,7 @@ LIB = fpx
INCS = fpxlib.h
SHLIB_MAJOR= 2
SHLIB_MINOR= 7
-WARNS= 3
+WARNS= 2
LIBDIR = ${PREFIX}/lib
INCSDIR = ${PREFIX}/include
diff --git a/graphics/libfpx/files/patch-warnings b/graphics/libfpx/files/patch-warnings
new file mode 100644
index 000000000000..a9de525cd133
--- /dev/null
+++ b/graphics/libfpx/files/patch-warnings
@@ -0,0 +1,20 @@
+Shift indentation to avoid the "misleading indentation" warning
+from LLVM10. I admit, that the original author's intent escapes
+me here, so I cannot tell, if we have an actual bug remaining
+in this code.
+
+ -mi
+
+--- fpx/ptil_fpx.cpp 2013-09-02 11:45:00.000000000 -0400
++++ fpx/ptil_fpx.cpp 2020-03-17 18:11:00.425447000 -0400
+@@ -1200,7 +1200,7 @@
+ pixelsSpace = tmpPixelSpace;
+ }
+- imageParam->GetContrast( &contrastValue);
+- Contrast( contrastValue, pixelsSpace, pixels, width * height);
+- }
++ imageParam->GetContrast( &contrastValue);
++ Contrast( contrastValue, pixelsSpace, pixels, width * height);
++ }
+ }
+