[Python-checkins] r85602 - python/branches/release27-maint/Mac/Modules/Nav.c
georg.brandl
python-checkins at python.org
Sun Oct 17 08:13:26 CEST 2010
Author: georg.brandl
Date: Sun Oct 17 08:13:26 2010
New Revision: 85602
Log:
Fix compiler warning about unused variables.
Modified:
python/branches/release27-maint/Mac/Modules/Nav.c
Modified: python/branches/release27-maint/Mac/Modules/Nav.c
==============================================================================
--- python/branches/release27-maint/Mac/Modules/Nav.c (original)
+++ python/branches/release27-maint/Mac/Modules/Nav.c Sun Oct 17 08:13:26 2010
@@ -930,16 +930,15 @@
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() ) {
More information about the Python-checkins
mailing list