diff options
author | Georg Brandl <georg@python.org> | 2010-10-17 06:13:26 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-10-17 06:13:26 (GMT) |
commit | c9a6320b007f86f7c1780097045c8bdc8286c4d9 (patch) | |
tree | 083959d076f7259b0e0b5d95cfe08376eea28c30 /Mac | |
parent | 95898c42913523d0a72c7b4f6c384eb42e06d5ca (diff) | |
download | cpython-c9a6320b007f86f7c1780097045c8bdc8286c4d9.zip cpython-c9a6320b007f86f7c1780097045c8bdc8286c4d9.tar.gz cpython-c9a6320b007f86f7c1780097045c8bdc8286c4d9.tar.bz2 |
Fix compiler warning about unused variables.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Modules/Nav.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Mac/Modules/Nav.c b/Mac/Modules/Nav.c index 7118d43..d2aa7db 100644 --- a/Mac/Modules/Nav.c +++ b/Mac/Modules/Nav.c @@ -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() ) { |