@@ -60,7 +60,7 @@ typedef struct {
6060} SPI ;
6161
6262static PyObject *
63- SPI_new (PyTypeObject * type , PyObject * args , PyObject * kwds )
63+ SPI_new (PyTypeObject * type , __attribute__ (( unused )) PyObject * args , __attribute__ (( unused )) PyObject * kwds )
6464{
6565 SPI * self ;
6666 if ((self = (SPI * )type -> tp_alloc (type , 0 )) == NULL )
@@ -380,15 +380,15 @@ static int __SPI_set_mode( int fd, __u8 mode) {
380380}
381381
382382static PyObject *
383- SPI_get_mode (SPI * self , void * closure )
383+ SPI_get_mode (SPI * self , __attribute__ (( unused )) void * closure )
384384{
385385 PyObject * result = Py_BuildValue ("i" , (self -> mode & (SPI_CPHA | SPI_CPOL ) ) );
386386
387387 return result ;
388388}
389389
390390static PyObject *
391- SPI_get_cshigh (SPI * self , void * closure )
391+ SPI_get_cshigh (SPI * self , __attribute__ (( unused )) void * closure )
392392{
393393 PyObject * result ;
394394
@@ -402,7 +402,7 @@ SPI_get_cshigh(SPI *self, void *closure)
402402}
403403
404404static PyObject *
405- SPI_get_lsbfirst (SPI * self , void * closure )
405+ SPI_get_lsbfirst (SPI * self , __attribute__ (( unused )) void * closure )
406406{
407407 PyObject * result ;
408408
@@ -416,7 +416,7 @@ SPI_get_lsbfirst(SPI *self, void *closure)
416416}
417417
418418static PyObject *
419- SPI_get_3wire (SPI * self , void * closure )
419+ SPI_get_3wire (SPI * self , __attribute__ (( unused )) void * closure )
420420{
421421 PyObject * result ;
422422
@@ -430,7 +430,7 @@ SPI_get_3wire(SPI *self, void *closure)
430430}
431431
432432static PyObject *
433- SPI_get_loop (SPI * self , void * closure )
433+ SPI_get_loop (SPI * self , __attribute__ (( unused )) void * closure )
434434{
435435 PyObject * result ;
436436
@@ -445,7 +445,7 @@ SPI_get_loop(SPI *self, void *closure)
445445
446446
447447static int
448- SPI_set_mode (SPI * self , PyObject * val , void * closure )
448+ SPI_set_mode (SPI * self , PyObject * val , __attribute__ (( unused )) void * closure )
449449{
450450 uint8_t mode , tmp ;
451451
@@ -480,7 +480,7 @@ SPI_set_mode(SPI *self, PyObject *val, void *closure)
480480}
481481
482482static int
483- SPI_set_cshigh (SPI * self , PyObject * val , void * closure )
483+ SPI_set_cshigh (SPI * self , PyObject * val , __attribute__ (( unused )) void * closure )
484484{
485485 uint8_t tmp ;
486486
@@ -508,7 +508,7 @@ SPI_set_cshigh(SPI *self, PyObject *val, void *closure)
508508}
509509
510510static int
511- SPI_set_lsbfirst (SPI * self , PyObject * val , void * closure )
511+ SPI_set_lsbfirst (SPI * self , PyObject * val , __attribute__ (( unused )) void * closure )
512512{
513513 uint8_t tmp ;
514514
@@ -536,7 +536,7 @@ SPI_set_lsbfirst(SPI *self, PyObject *val, void *closure)
536536}
537537
538538static int
539- SPI_set_3wire (SPI * self , PyObject * val , void * closure )
539+ SPI_set_3wire (SPI * self , PyObject * val , __attribute__ (( unused )) void * closure )
540540{
541541 uint8_t tmp ;
542542
@@ -564,7 +564,7 @@ SPI_set_3wire(SPI *self, PyObject *val, void *closure)
564564}
565565
566566static int
567- SPI_set_loop (SPI * self , PyObject * val , void * closure )
567+ SPI_set_loop (SPI * self , PyObject * val , __attribute__ (( unused )) void * closure )
568568{
569569 uint8_t tmp ;
570570
@@ -592,14 +592,14 @@ SPI_set_loop(SPI *self, PyObject *val, void *closure)
592592}
593593
594594static PyObject *
595- SPI_get_bpw (SPI * self , void * closure )
595+ SPI_get_bpw (SPI * self , __attribute__ (( unused )) void * closure )
596596{
597597 PyObject * result = Py_BuildValue ("i" , self -> bpw );
598598 return result ;
599599}
600600
601601static int
602- SPI_set_bpw (SPI * self , PyObject * val , void * closure )
602+ SPI_set_bpw (SPI * self , PyObject * val , __attribute__ (( unused )) void * closure )
603603{
604604 uint8_t bits ;
605605
@@ -633,14 +633,14 @@ SPI_set_bpw(SPI *self, PyObject *val, void *closure)
633633}
634634
635635static PyObject *
636- SPI_get_msh (SPI * self , void * closure )
636+ SPI_get_msh (SPI * self , __attribute__ (( unused )) void * closure )
637637{
638638 PyObject * result = Py_BuildValue ("i" , self -> msh );
639639 return result ;
640640}
641641
642642static int
643- SPI_set_msh (SPI * self , PyObject * val , void * closure )
643+ SPI_set_msh (SPI * self , PyObject * val , __attribute__ (( unused )) void * closure )
644644{
645645 uint32_t msh ;
646646
0 commit comments