move strict compiler checks into a header so its easier to manage in one place (pragmas were copied around).

also enable more strict warnings for BLF (which had some incorrect casts).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59695 954f8c5b-7b00-dc11-b283-0030488c597c
use strict flags for guarded alloc


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59696 954f8c5b-7b00-dc11-b283-0030488c597c
use strict flags for scanfill, also replace shorts with unsigned shorts and ints/bools in some cases.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59697 954f8c5b-7b00-dc11-b283-0030488c597c
use strict flags for lasso, boxpack, gsqueue and quadric's.
for lasso also use unsigned ints rather then shorts for the path length.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59698 954f8c5b-7b00-dc11-b283-0030488c597c
Mingw/Windows Compiling Fix

This commit attempts to fix the following error:

intern\guardedalloc\intern\mallocn.c: In function 'rem_memblock':
intern\guardedalloc\intern\mallocn.c:977:48: error: conversion to 'intptr_t' from 'size_t' may change the sign of the result [-Werror=sign-conversion]

From the references I've managed to find, it appears that
the second arg to munmap() should be size_t not intptr_t.
Fortunately though, we don't use this arg anyways atm, so 
this should be quite harmless...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59699 954f8c5b-7b00-dc11-b283-0030488c597c
Mingw Compiling Fix - Conversion from int to unsigned char...

Apparently mingw/gcc is too stupid to recognise that the values
in alphatest will only be used if they're within the range of 
unsigned char (i.e. 0 <= x < 255) when this is done using a ternary
operator. Then again, it's quite hard for humans to immediately
parse what is going on here either! Converting this clever code
back to a more obvious form that mere mortals (and compilers it 
seems) can handle with ease ;)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59700 954f8c5b-7b00-dc11-b283-0030488c597c
Mingw/Windows Compiling Fix:

In file included from source\blender\compositor\operations\COM_PlaneTrackMaskOperation.cpp:31:0:
source\blender\blenlib/BLI_jitter.h:36:65: error: expected ',' or '...' before numeric constant
source\blender\blenlib/BLI_jitter.h:37:65: error: expected ',' or '...' before numeric constant


It appears that an include used in COM_PlaneTrackMaskOperation.cpp brings in some Windows header file, which in turn defines rad/rad1/rad2 as some numeric constants.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59701 954f8c5b-7b00-dc11-b283-0030488c597c
kd-tree,
- replace numbers with defines for allocation increments and default array size.
- move array reallocation into a static function (deduplicate 2x).

also fix own mistake with uninitialized slop-space var in memory printing statistics.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59702 954f8c5b-7b00-dc11-b283-0030488c597c
Patch #36622, by Henrik Aarnio: Fit backdrop image to the area dimensions.
A new operator to alter the backdrop zoom level so that it fits fully within the node editor area, and centers the image.
Shortcut alt-home, as home is used for fitting stuff into the view everywhere.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59703 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36613: view select/all shortcuts not working in graph editor with the
maya key configuration preset.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59704 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36620: sss + indirect light rendering artifacts, due to wrong correlation in
the random numbers.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59705 954f8c5b-7b00-dc11-b283-0030488c597c
Fix OS X compile error after enabling strict build flags for this module.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59706 954f8c5b-7b00-dc11-b283-0030488c597c
add view3d roll to navigation menu.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59707 954f8c5b-7b00-dc11-b283-0030488c597c
Remove some unneeded type conversions.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59708 954f8c5b-7b00-dc11-b283-0030488c597c
Tag unused arg as unused.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59709 954f8c5b-7b00-dc11-b283-0030488c597c
Move GCC attributes into a centraized defines

Instead of having ifdef __GNUC__ all over the headers
to use special compiler's hints use a special file where
all things like this are concentrated.

Makes code easier to follow and allows to manage special
attributes in more efficient way.

Thanks Campbell for review!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59710 954f8c5b-7b00-dc11-b283-0030488c597c
OSX/gcc4.6+: fix compiling, -Wconversion causes ann weeror in gcc's own stdio.h else

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59711 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#36479] Particle instance Modifier random position snaps objects to 0 position

Most work (tracking bug) done by Anthony Edlin, many thanks!

Great example of why having duplicate code is never a good idea... ;)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59713 954f8c5b-7b00-dc11-b283-0030488c597c
use strict flags for kdtree, and replace ints with unsigned ints where possible.
also replace callocs with mallocs since zeroing memory can be avoided.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59719 954f8c5b-7b00-dc11-b283-0030488c597c