Skip to content
Snippets Groups Projects
Commit 9685cc36 authored by Sean Davis's avatar Sean Davis
Browse files

Fix CID 213280: Constant variable guards dead code

parent 64d50302
No related branches found
No related tags found
No related merge requests found
......@@ -109,23 +109,17 @@ lock_initialization (char **nolock_reason) {
to bring any other Mac program to the front, e.g., Terminal.)
*/
{
gboolean macos = FALSE;
#ifdef __APPLE__
/* Disable locking if *running* on Apple hardware, since we have no
reliable way to determine whether the server is running on MacOS.
Hopefully __APPLE__ means "MacOS" and not "Linux on Mac hardware"
but I'm not really sure about that.
*/
macos = TRUE;
#endif
if (macos) {
if (nolock_reason) {
*nolock_reason = g_strdup ("Cannot lock securely on MacOS X");
}
return FALSE;
if (nolock_reason) {
*nolock_reason = g_strdup ("Cannot lock securely on MacOS X");
}
return FALSE;
#endif
}
#endif /* NO_LOCKING */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment