10 Incompatibilities on PA-RISC based systems
On
aC++ standard conformance and compatibility changes.
In such cases, the best way is to modify the source code so that the code is more standards compliant and is compilable on platforms based on both Integrity and
Some of the C99 constructs like variable length arrays, compound literals, and designated initializers are enabled by default in the HP C compiler on
/*vla.c*/ int dep; int main(){
int arr[dep];
}
The declaration is logically incorrect as the array would have zero size. Initialize the variable dep with some
Using /opt/cadvise/bin/cadvise cc
"vla.c", line 4: error #2028: expression must have a constant value int arr[dep];
Using /opt/cadvise/bin/cadvise cc
57