mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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:
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
|
@ -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
|
||||
|
|
20
graphics/libfpx/files/patch-warnings
Normal file
20
graphics/libfpx/files/patch-warnings
Normal 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);
|
||||
+ }
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue