Skip to content

Commit 94c58e7

Browse files
committed
minor changes to fix -Wunused-function warning on Apple platforms
1 parent 27cfe31 commit 94c58e7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

modules/imgproc/src/drawing.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ static inline uint64_t opencvLittleToHost64(uint64_t x){
11841184
#if OPENCV_LITTLEENDIAN
11851185
return x;
11861186
#else
1187-
return opencvLittleToHost64((uchar*)&x);
1187+
return opencvLittleToHost64((const uchar*)&x);
11881188
#endif
11891189
}
11901190

@@ -1552,7 +1552,7 @@ static inline void ICV_HLINE_8(uchar* ptr, int xl, int xr, const uchar* color)
15521552
{
15531553
if (is_aligned(((uchar*)(ptr) + (xl)*8), 0x8))
15541554
{
1555-
uint64_t c = opencvLittleToHost64((uchar*)(color));
1555+
uint64_t c = opencvLittleToHost64(color);
15561556
uint64_t* hline_ptr = (uint64_t*)((uchar*)(ptr) + (xl)*(8));
15571557
uint64_t* hline_max_ptr = (uint64_t*)((uchar*)(ptr) + (xr)*(8));
15581558
for( ; hline_ptr <= hline_max_ptr; )
@@ -1604,8 +1604,8 @@ static inline void ICV_HLINE_16(uchar* ptr, int xl, int xr, const uchar* color)
16041604
{
16051605
if (is_aligned(((uchar*)(ptr) + (xl)*16), 0x8))
16061606
{
1607-
uint64_t c[2] = {opencvLittleToHost64((uchar*)(color)+0x00),
1608-
opencvLittleToHost64((uchar*)(color)+0x08)};
1607+
uint64_t c[2] = {opencvLittleToHost64(color+0x00),
1608+
opencvLittleToHost64(color+0x08)};
16091609
uint64_t* hline_ptr = (uint64_t*)((uchar*)(ptr) + (xl)*(16));
16101610
uint64_t* hline_max_ptr = (uint64_t*)((uchar*)(ptr) + (xr)*(16));
16111611
for( ; hline_ptr <= hline_max_ptr; )
@@ -1641,9 +1641,9 @@ static inline void ICV_HLINE_24(uchar* ptr, int xl, int xr, const uchar* color)
16411641
{
16421642
if (is_aligned(((uchar*)(ptr) + (xl)*24), 0x8))
16431643
{
1644-
uint64_t c[3] = {opencvLittleToHost64((uchar*)(color)+0x00),
1645-
opencvLittleToHost64((uchar*)(color)+0x08),
1646-
opencvLittleToHost64((uchar*)(color)+0x10)};
1644+
uint64_t c[3] = {opencvLittleToHost64(color+0x00),
1645+
opencvLittleToHost64(color+0x08),
1646+
opencvLittleToHost64(color+0x10)};
16471647
uint64_t* hline_ptr = (uint64_t*)((uchar*)(ptr) + (xl)*(24));
16481648
uint64_t* hline_max_ptr = (uint64_t*)((uchar*)(ptr) + (xr)*(24));
16491649
for( ; hline_ptr <= hline_max_ptr; )
@@ -1684,10 +1684,10 @@ static inline void ICV_HLINE_32(uchar* ptr, int xl, int xr, const uchar* color)
16841684
{
16851685
if (is_aligned(((uchar*)(ptr) + (xl)*32), 0x8))
16861686
{
1687-
uint64_t c[4] = {opencvLittleToHost64((uchar*)(color)+0x00),
1688-
opencvLittleToHost64((uchar*)(color)+0x08),
1689-
opencvLittleToHost64((uchar*)(color)+0x10),
1690-
opencvLittleToHost64((uchar*)(color)+0x18)};
1687+
uint64_t c[4] = {opencvLittleToHost64(color+0x00),
1688+
opencvLittleToHost64(color+0x08),
1689+
opencvLittleToHost64(color+0x10),
1690+
opencvLittleToHost64(color+0x18)};
16911691
uint64_t* hline_ptr = (uint64_t*)((uchar*)(ptr) + (xl)*(32));
16921692
uint64_t* hline_max_ptr = (uint64_t*)((uchar*)(ptr) + (xr)*(32));
16931693
for( ; hline_ptr <= hline_max_ptr; )

0 commit comments

Comments
 (0)