Enumeration constant definition violation in librpc/gen_ndr/srvsvc.h. Noticed by compiler e.g. as follows: line 213: warning: enumerator value overflows INT_MAX Fix: 9c9 < #define STYPE_HIDDEN ( 0x80000000 ) --- > #define STYPE_HIDDEN ( (signed int)0x80000000 )
Issue also occurs on Tru64 UNIX 5.1a for all versions from 3.0.25 to current (3.0.27a)
Thanks for the bug report.
This still occurs with v3.3.1.
(In reply to Paul Kranenburg from comment #0) > Fix: > > 9c9 > < #define STYPE_HIDDEN ( 0x80000000 ) > --- > > #define STYPE_HIDDEN ( (signed int)0x80000000 ) fix is wrong. This is generated code, and is defined as unsigned in librpc/idl/srvsvc.idl: const uint32 STYPE_HIDDEN = 0x80000000; We could add a UL to the end of that, but I will tentatively WONTFIX under the assumption that Solaris and Tru64 compilers have caught up or otherwise fallen silent.