Skip to content

A lot of unused stuff in the Mac build. #22

@redpola

Description

@redpola

Surely this can't be right?

scrape:cython-hidapi neil$ python setup-mac.py build
running build
running build_ext
cythoning hid.pyx to hid.c
building 'hid' extension
creating build
creating build/temp.macosx-10.11-intel-2.7
cc -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -framework IOKit -framework CoreFoundation -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c hid.c -o build/temp.macosx-10.11-intel-2.7/hid.o
clang: warning: -framework IOKit: 'linker' input unused
clang: warning: -framework CoreFoundation: 'linker' input unused
hid.c:4026:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function]
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
                               ^
hid.c:361:29: warning: unused function '__Pyx_Py_UNICODE_strlen' [-Wunused-function]
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
                            ^
hid.c:4141:33: warning: unused function '__Pyx_PyIndex_AsSsize_t' [-Wunused-function]
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
                                ^
hid.c:4203:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function]
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
                                ^
hid.c:2768:27: warning: unused function '__Pyx_ErrFetchInState' [-Wunused-function]
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObj...
                          ^
hid.c:3768:34: warning: unused function '__Pyx_PyInt_From_long' [-Wunused-function]
  static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
                                 ^
hid.c:3795:29: warning: function '__Pyx_PyInt_As_long' is not needed and will not be emitted
      [-Wunneeded-internal-declaration]
  static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
                            ^
7 warnings generated.
hid.c:4026:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function]
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
                               ^
hid.c:361:29: warning: unused function '__Pyx_Py_UNICODE_strlen' [-Wunused-function]
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
                            ^
hid.c:4141:33: warning: unused function '__Pyx_PyIndex_AsSsize_t' [-Wunused-function]
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
                                ^
hid.c:4203:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function]
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
                                ^
hid.c:2768:27: warning: unused function '__Pyx_ErrFetchInState' [-Wunused-function]
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObj...
                          ^
hid.c:3768:34: warning: unused function '__Pyx_PyInt_From_long' [-Wunused-function]
  static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
                                 ^
hid.c:3795:29: warning: function '__Pyx_PyInt_As_long' is not needed and will not be emitted
      [-Wunneeded-internal-declaration]
  static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
                            ^
7 warnings generated.
cc -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -framework IOKit -framework CoreFoundation -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c hid-mac.c -o build/temp.macosx-10.11-intel-2.7/hid-mac.o
clang: warning: -framework IOKit: 'linker' input unused
clang: warning: -framework CoreFoundation: 'linker' input unused
creating build/lib.macosx-10.11-intel-2.7
cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. -framework IOKit -framework CoreFoundation build/temp.macosx-10.11-intel-2.7/hid.o build/temp.macosx-10.11-intel-2.7/hid-mac.o -o build/lib.macosx-10.11-intel-2.7/hid.so

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions