Multipurpose debug header for multiple debugging purposes

This commit is contained in:
pelya
2011-12-26 17:06:55 +02:00
parent 7d60e8fff1
commit e7c561a614
3 changed files with 51 additions and 2 deletions

View File

@@ -193,7 +193,8 @@ int i = (int *) p; // We have garbage inside i now
memcpy( &i, p, sizeof(int) ); // The correct way to dereference a non-aligned pointer
This compiler flags will catch most obvious errors, you may add them to AppCflags var in settings:
-Werror=strict-aliasing -Werror=cast-align -Werror=pointer-arith -Werror=address
-Wstrict-aliasing -Wcast-align -Wpointer-arith -Waddress
Also beware of the NDK - some system headers contain the code that triggers that warnings.
The application will automatically get moved to SD-card on Android 2.2 or newer,
(or you can install app2sd for older, but rooted phones),