Comments (6)
Can confirm, same error on debian buster arm64v8
RCSwitch.cpp:388:12: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp: In member function ‘void RCSwitch::enableReceive()’:
RCSwitch.cpp:569:32: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
RCSwitch::nReceivedValue = NULL;
^~~~
RCSwitch.cpp:570:36: warning: converting to non-pointer type ‘unsigned int’ from NULL [-Wconversion-null]
RCSwitch::nReceivedBitlength = NULL;
^~~~
RCSwitch.cpp: In member function ‘bool RCSwitch::available()’:
RCSwitch.cpp:582:38: warning: NULL used in arithmetic [-Wpointer-arith]
return RCSwitch::nReceivedValue != NULL;
^~~~
RCSwitch.cpp: In member function ‘void RCSwitch::resetAvailable()’:
RCSwitch.cpp:586:30: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
RCSwitch::nReceivedValue = NULL;
^~~~
make: *** [<builtin>: RCSwitch.o] Error 1```
from raspberry-remote.
Same error:
RCSwitch.cpp: In constructor ‘RCSwitch::RCSwitch()’:
RCSwitch.cpp:41:30: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
RCSwitch::nReceivedValue = NULL;
^~~~
RCSwitch.cpp: In member function ‘char* RCSwitch::getCodeWordB(int, int, boolean)’:
RCSwitch.cpp:218:12: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp: In member function ‘char* RCSwitch::getCodeWordA(char*, int, boolean)’:
RCSwitch.cpp:261:14: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp:270:14: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp: In member function ‘char* RCSwitch::getCodeWordD(char*, int, boolean)’:
RCSwitch.cpp:335:14: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp:344:14: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp: In member function ‘char* RCSwitch::getCodeWordC(char, int, int, boolean)’:
RCSwitch.cpp:388:12: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
return '\0';
from raspberry-remote.
On Raspberry Pi 4
g++ -Wall -lwiringPi -c -o RCSwitch.o RCSwitch.cpp RCSwitch.cpp:31:42: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null] unsigned long RCSwitch::nReceivedValue = NULL; ^~~~ RCSwitch.cpp: In constructor ‘RCSwitch::RCSwitch()’: RCSwitch.cpp:41:30: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null] RCSwitch::nReceivedValue = NULL; ^~~~ RCSwitch.cpp: In member function ‘char* RCSwitch::getCodeWordB(int, int, boolean)’: RCSwitch.cpp:218:12: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive] return '\0'; ^~~~ RCSwitch.cpp: In member function ‘char* RCSwitch::getCodeWordA(char*, int, boolean)’: RCSwitch.cpp:261:14: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive] return '\0'; ^~~~ RCSwitch.cpp:270:14: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive] return '\0'; ^~~~ RCSwitch.cpp: In member function ‘char* RCSwitch::getCodeWordD(char*, int, boolean)’: RCSwitch.cpp:335:14: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive] return '\0'; ^~~~ RCSwitch.cpp:344:14: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive] return '\0'; ^~~~ RCSwitch.cpp: In member function ‘char* RCSwitch::getCodeWordC(char, int, int, boolean)’: RCSwitch.cpp:388:12: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive] return '\0'; ^~~~ RCSwitch.cpp: In member function ‘void RCSwitch::enableReceive()’: RCSwitch.cpp:569:32: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null] RCSwitch::nReceivedValue = NULL; ^~~~ RCSwitch.cpp:570:36: warning: converting to non-pointer type ‘unsigned int’ from NULL [-Wconversion-null] RCSwitch::nReceivedBitlength = NULL; ^~~~ RCSwitch.cpp: In member function ‘bool RCSwitch::available()’: RCSwitch.cpp:582:38: warning: NULL used in arithmetic [-Wpointer-arith] return RCSwitch::nReceivedValue != NULL; ^~~~ RCSwitch.cpp: In member function ‘void RCSwitch::resetAvailable()’: RCSwitch.cpp:586:30: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null] RCSwitch::nReceivedValue = NULL; ^~~~ make: *** [<builtin>: RCSwitch.o] Error 1
from raspberry-remote.
not using this anymore for some years now. please try the dev branch where i blindly applied possible fixes.
from raspberry-remote.
Does anyone got it now ? I've tried everything but nothing worked
from raspberry-remote.
tried a quick & dirty fix in 13055a1 - as I dont have the hardware anymore, I would kindly ask you to report back.
from raspberry-remote.
Related Issues (20)
- GPIO #17 is not available on Raspberry Pi 2B HOT 1
- Resolved --- Addressing more plugs ? HOT 1
- Powerswitch.cpp ipv6 socket? HOT 1
- webinterface HOT 53
- Cannot call 01 / 08
- Webinterface dos not work HOT 1
- Webinterface "Could not connect to Socket" Problem Solved HOT 1
- webinterface - Intertechno switches don't work HOT 2
- starting daemon in binary mode dont work (more than 5 HOT 1
- Delay doesnt work
- Code send HOT 1
- Daemon crashes with Stretch HOT 1
- Checking the status HOT 4
- IPv6 - Could not bind to socket HOT 4
- Daemon randomly crashes - Too many open files HOT 6
- 1 button for all sockets
- 64Bit Support HOT 7
- 64Bit Support? HOT 1
- Help! arm64bit instruction // compiler
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raspberry-remote.