]> granicus.if.org Git - python/commitdiff
Fix compiler warning about unused variables.
authorGeorg Brandl <georg@python.org>
Sun, 17 Oct 2010 06:13:26 +0000 (06:13 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 17 Oct 2010 06:13:26 +0000 (06:13 +0000)
Mac/Modules/Nav.c

index 7118d43c7fba42e89f9b39ba26f2b387fd48d5f5..d2aa7dbe93b41c9fd47034c62a18f6d9227870d0 100644 (file)
@@ -930,16 +930,15 @@ static char Nav_module_documentation[] =
 void
 initNav(void)
 {
-    PyObject *m, *d;
-
-    if (PyErr_WarnPy3k("In 3.x, the Nav module is removed.", 1))
-        return;
-
 #ifdef __LP64__
     PyErr_SetString(PyExc_ImportError, "Navigation Services not available in 64-bit mode");
     return;
 
 #else   /* !__LP64__ */
+    PyObject *m, *d;
+
+    if (PyErr_WarnPy3k("In 3.x, the Nav module is removed.", 1))
+        return;
 
     /* Test that we have NavServices */
     if ( !NavServicesAvailable() ) {