The Samba-Bugzilla – Attachment 15813 Details for
Bug 14289
OmniOS compile warning about ARRAY_SIZE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patch to fix compiler warning about ARRAY_SIZE
array_size.patch (text/plain), 474 bytes, created by
Peter Eriksson
on 2020-02-21 21:57:48 UTC
(
hide
)
Description:
Patch to fix compiler warning about ARRAY_SIZE
Filename:
MIME Type:
Creator:
Peter Eriksson
Created:
2020-02-21 21:57:48 UTC
Size:
474 bytes
patch
obsolete
># OmniOS already has a competing/equivalent definition of ARRAY_SIZE ># in <sys/sysmacros.h> - so ignore the local one here >--- samba-4.12.0rc2/lib/replace/replace.h.ORIG Wed Feb 19 10:50:07 2020 >+++ samba-4.12.0rc2/lib/replace/replace.h Wed Feb 19 10:53:15 2020 >@@ -844,8 +844,10 @@ > /** > * Work out how many elements there are in a static array. > */ >+#ifndef ARRAY_SIZE > #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0])) >- >+#endif >+ > /** > * Pointer difference macro > */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14289
: 15813