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
This commit is contained in:
Mikhail Teterin 2020-03-17 22:19:14 +00:00
parent db79f07b1d
commit 55ae96f418
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=528605
2 changed files with 21 additions and 1 deletions

View file

@ -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

View file

@ -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);
+ }
}