46 karma · joined Nov 10, 2016 (10y ago) · 11 submissions
comment 4y ago · link · parent
Many handheld devices in the age of physical keyboards used grid aligned qwerty keyboards, so it's not unique here.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
It's just that the community here tends not to like twitter threads, but likes the content.
comment 4y ago · link · parent
There's also instructions for converting a running system, but I've had no luck with that. It just resulted in an unbootable system for me as it couldn't fully remove systemd there.
comment 5y ago · link · parent
comment 7y ago · link · parent
From 6.9.1 - "If the } that terminates a function is reached, and the value of the function call is used by the caller, the behavior is undefined"
Though 6.8.6.4 also says "A return statement without an expression shall only appear in a function whose return type is void"
So it seems like a non-void function hitting the end of the block without a return statement is allowed (provided the value isn't used). But having a "return;" in that function would not be in C11.
comment 7y ago · link · parent
In C reaching the end of a non-void function is not undefined behaviour though. It's equivalent to ending with a return; However attempting to use the return value of that function is undefined behaviour. It'd be fine to have that warning be an error when compiling for C++, but not for C.
C89 3.6.6.4 (http://port70.net/~nsz/c/c89/c89-draft.html#3.6.6.4): "If a return statement without an expression is executed, and the value of the function call is used by the caller, the behavior is undefined. Reaching the } that terminates a function is equivalent to executing a return statement without an expression."