Skip to content

Instantly share code, notes, and snippets.

View hari90's full-sized avatar
🏗️
Constructing databases

Hari Krishna Sunder hari90

🏗️
Constructing databases
View GitHub Profile
/-------------------------------------------------------------------------------
| COMPILATION FAILED
|-------------------------------------------------------------------------------
In file included from ../../../../../src/postgres/src/common/f2s.c:38:
In file included from ../../../../../src/postgres/src/include/postgres_fe.h:25:
In file included from ../../../../../src/postgres/src/include/c.h:60:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdlib.h:128:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/malloc/_malloc.h:44:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/malloc/_malloc_type.h:57:1: error: unknown platform 'visionos' in availability macro [-Werror,-Wavailability]
_MALLOC_TYPE_AVAILABILITY void *malloc_type_malloc(size_t size, malloc_type_id_t type_id) __result
@hari90
hari90 / gist:3480c6073dd5a92ff1e7027295bc2bf3
Created July 9, 2024 02:58
stdio.h Wnullability-completeness
/-------------------------------------------------------------------------------
| COMPILATION FAILED
|-------------------------------------------------------------------------------
In file included from ../../../../../src/postgres/src/common/f2s.c:38:
In file included from ../../../../../src/postgres/src/include/postgres_fe.h:25:
In file included from ../../../../../src/postgres/src/include/c.h:59:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdio.h:64:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/_stdio.h:93:16: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
unsigned char *_base;
^
@hari90
hari90 / gettext -Wno-deprecated-declarations
Created June 18, 2024 20:03
gettext -Wno-deprecated-declarations
[gettext (clang15, uninstrumented)] strerror.c:59:7: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
[gettext (clang15, uninstrumented)] sprintf (buf, fmt, n);
[gettext (clang15, uninstrumented)] ^
[gettext (clang15, uninstrumented)] /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
[gettext (clang15, uninstrumented)] __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
[gettext (clang15, uninstrumented)] ^
[gettext (clang15, uninstrumented)] /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
[gett
@hari90
hari90 / gettext -Wincompatible-function-pointer-types
Last active June 18, 2024 19:54
gettext -Wincompatible-function-pointer-types
[gettext (clang15, uninstrumented)] libtool: compile: /Users/hsunder/code/hari90-yugabyte-db-thirdparty/python/yugabyte_db_thirdparty/compiler_wrapper_cc.py -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -Iglib -DIN_LIBTEXTSTYLE -DLIBXML_STATIC -I./libcroco -DDEPENDS_ON_LIBICONV=1 -I/Users/hsunder/code/hari90-yugabyte-db-thirdparty/installed/uninstrumented/include -I/Users/hsunder/code/hari90-yugabyte-db-thirdparty/installed/common/include -fno-omit-frame-pointer -fPIC -O3 -Wall -mmacosx-version-min=11.2 -Wno-deprecated-declarations -c printf-parse.c -fno-common -DPIC -o .libs/printf-parse.o
[gettext (clang15, uninstrumented)] /bin/sh ../libtool --tag=CC --mode=compile /Users/hsunder/code/hari90-yugabyte-db-thirdparty/python/yugabyte_db_thirdparty/compiler_wrapper_cc.py -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -Iglib -DIN_LIBTEXTSTYLE -DLIBXML_STATIC -I./libcroco -DDEPENDS_ON_LIBICONV=1 -I/Users/hsunder/code/hari90-yugabyte-db-thirdparty/installed/uninstrumented/include -I/Users/hsunder/code/hari90-