Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created November 20, 2012 02:22
Show Gist options
  • Save springmeyer/4115531 to your computer and use it in GitHub Desktop.
Save springmeyer/4115531 to your computer and use it in GitHub Desktop.
osm2pgsql pedantic warnings (errors on windows)
../node-ram-cache.c:122:9: warning: extension used [-pedantic,-Wlanguage-extension-token]
Swap( queue[i], queue[parent] );
^
../node-ram-cache.c:112:21: note: expanded from macro 'Swap'
#define Swap(a,b) { typeof(a) __tmp = a; a = b; b = __tmp; }
^
../node-ram-cache.c:135:29: warning: arithmetic on a pointer to void is a GNU extension [-pedantic,-Wpointer-arith]
result = blockCache + cacheSize - pos + SAFETY_MARGIN;
~~~~~~~~~~ ^
../node-ram-cache.c:135:41: warning: arithmetic on a pointer to void is a GNU extension [-pedantic,-Wpointer-arith]
result = blockCache + cacheSize - pos + SAFETY_MARGIN;
~~~~~~~~~~~~~~~~~~~~~~ ^
../node-ram-cache.c:135:47: warning: arithmetic on a pointer to void is a GNU extension [-pedantic,-Wpointer-arith]
result = blockCache + cacheSize - pos + SAFETY_MARGIN;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
../node-ram-cache.c:246:25: warning: extension used [-pedantic,-Wlanguage-extension-token]
Swap( queue[i], queue[2*i+1] );
^
../node-ram-cache.c:112:21: note: expanded from macro 'Swap'
#define Swap(a,b) { typeof(a) __tmp = a; a = b; b = __tmp; }
^
../node-ram-cache.c:253:25: warning: extension used [-pedantic,-Wlanguage-extension-token]
Swap( queue[i], queue[2*i+2] );
^
../node-ram-cache.c:112:21: note: expanded from macro 'Swap'
#define Swap(a,b) { typeof(a) __tmp = a; a = b; b = __tmp; }
^
6 warnings generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment