W8119 Alignment reduced to maximum of %d (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

This warning is issued when the user tries to set an alignment greater than Bcc's maximum allowed for the type. The GNU GCC compiler allows a greater range, so one source of this warning is when GNU headers containing the __aligned__ attribute are parsed by Bcc.

char b __attribute__ ((aligned (4)));     // natural alignment of char is 1
short x __attribute__ ((aligned (16))) = 0;     // natural alignment of short is 2