diff options
author | Mikhail Teterin <mi@FreeBSD.org> | 2020-03-17 22:19:14 +0000 |
---|---|---|
committer | Mikhail Teterin <mi@FreeBSD.org> | 2020-03-17 22:19:14 +0000 |
commit | 55ae96f418d16b711f4853d366ffe02b33a5647d (patch) | |
tree | 65d555342cac2aeb43402b113d21ac636c455bb7 /graphics/libfpx/files/patch-warnings | |
parent | Update to 10.0.0rc4. (diff) |
Unbreak the port for users of -Werror -- the code stopped qualifying
for WARNS=3 a while ago, because it relies on implicit copy-constructors,
which are deprecated in some cases since c++11.
Fix another kind of warning by correcting the indentation.
No PORTREVISION bump because the changes are superficial -- resulting
binary remains the same.
Reported by: pkg-fallout
Tested with: llvm10
Notes
Notes:
svn path=/head/; revision=528605
Diffstat (limited to 'graphics/libfpx/files/patch-warnings')
-rw-r--r-- | graphics/libfpx/files/patch-warnings | 20 |
1 files changed, 20 insertions, 0 deletions
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); ++ } + } + |