HP-UX Cadvise Diagnostics Reference Guide (5900-1865, August 2012)

Table Of Contents
const char *ch0 = "\028\4471";
return 0;
}
Action:
For example: "\028" - Here '8' follows escape sequence '\02'. You can change the string to
"\02" "8".
Reference:
4360 size of types of consecutive bitfields are different, bitfield packing
behavior may be different across compiler
Cause:
This warning is issued during bitfield packing when the types in the structure are different.
Example:
#include<stdio.h>
struct node1
{
bool b1:1;
short s:1;
bool b:1;
}head1;
int main()
{
printf ("sizeof struct node1 is : %lu\n", sizeof(head1));
return 0;
}
Action:
It is good to use similar types for bitfield packing. This is because, bitfield packing behavior might
be different across compilers.
Reference:
4361 64 bit migration: size of types of consecutive bitfields are different,
bitfield packing behavior may be different across compilers
Cause:
In a 32–bit to 64–bit migration scenario, this warning is issued during bitfield packing when the
types in the structure are different.
Example:
#include<stdio.h>
enum name {first, middle, last};
struct node2
{
long l:1;
name n:1;
}head2;
int main()
{
printf ("sizeof struct node2 is : %lu\n", sizeof(head2));
return 0;
}
Action:
4360 size of types of consecutive bitfields are different, bitfield packing behavior may be different across compiler 67