Click here to Skip to main content
15,867,686 members
Home / Discussions / Linux Programming
   

Linux Programming

 
AnswerRe: Using ba2str fails - why ? Pin
ZurdoDev4-Mar-20 5:48
professionalZurdoDev4-Mar-20 5:48 
GeneralRe: Using ba2str fails - why ? Pin
k50544-Mar-20 5:54
mvek50544-Mar-20 5:54 
AnswerRe: Using ba2str fails - why ? Pin
k50544-Mar-20 5:20
mvek50544-Mar-20 5:20 
AnswerRe: Using ba2str fails - why ? Pin
Richard MacCutchan4-Mar-20 5:34
mveRichard MacCutchan4-Mar-20 5:34 
GeneralRe: Using ba2str fails - why ? Pin
Vaclav_4-Mar-20 5:46
Vaclav_4-Mar-20 5:46 
GeneralRe: Using ba2str fails - why ? Pin
Richard MacCutchan4-Mar-20 6:16
mveRichard MacCutchan4-Mar-20 6:16 
AnswerSOLVED Re: Using ba2str fails - why ? Pin
Vaclav_4-Mar-20 6:33
Vaclav_4-Mar-20 6:33 
QuestionCan "cast looses precision " error be optioned out ? Pin
Vaclav_3-Mar-20 4:10
Vaclav_3-Mar-20 4:10 
I have been writing code using crosscomplier for ARM architecture.
Works as expected. No "cast looses precision " errors.

Now I optioned IDE to change the architecture to X86.
Compiler now complains about
"cast looses precision " 
.
The complains (too many) are in class I am currently NOT editing.

Is there a option I can set GCC to temporary ignore
"cast looses precision " errors
?

Since the
"cast looses precision "
was not present while compiling for ARM it would not hurt to know WHY it fails in X86.


Here is the IDE "error"

Description	Resource	Path	Location	Type
cast from ‘uint32_t* {aka unsigned int*}’ to ‘uint32_t {aka unsigned int}’ loses precision [-fpermissive]	CBCM2835SPITFT.cpp	/RPI_BT_SERVER_X86_/src/MODULES/M_BCM2835_SPI_TFT	line 21264	C/C++ Problem




And here ONE of the offending code


C++
bcm2835_peripherals = (uint32_t*) mapmem(
NULL, bcm2835_peripherals_size,             // 100000
        _memfd, (uint32_t) bcm2835_peripherals_base);


Cheers


PS I think wholesale "search and replace " is too risky.
PPS Does the architecture - 64 bits on X86 and 32 on ARM matter? - both Linux OS.
AnswerRe: Can "cast looses precision " error be optioned out ? Pin
Richard MacCutchan3-Mar-20 4:43
mveRichard MacCutchan3-Mar-20 4:43 
AnswerRe: Can "cast looses precision " error be optioned out ? Pin
Daniel Pfeffer3-Mar-20 4:52
professionalDaniel Pfeffer3-Mar-20 4:52 
AnswerRe: Can "cast looses precision " error be optioned out ? Pin
k50543-Mar-20 5:52
mvek50543-Mar-20 5:52 
AnswerSOLVED Re: Can "cast looses precision " error be optioned out ? Pin
Vaclav_3-Mar-20 8:00
Vaclav_3-Mar-20 8:00 
GeneralRe: SOLVED Re: Can "cast looses precision " error be optioned out ? Pin
k50543-Mar-20 10:36
mvek50543-Mar-20 10:36 
GeneralRe: SOLVED Re: Can "cast looses precision " error be optioned out ? Pin
Vaclav_3-Mar-20 13:47
Vaclav_3-Mar-20 13:47 
QuestionBluetooth socket failures Pin
Vaclav_28-Feb-20 5:43
Vaclav_28-Feb-20 5:43 
AnswerRe: Bluetooth socket failures Pin
Richard MacCutchan28-Feb-20 6:32
mveRichard MacCutchan28-Feb-20 6:32 
GeneralRe: Bluetooth socket failures Pin
Vaclav_28-Feb-20 7:12
Vaclav_28-Feb-20 7:12 
GeneralRe: Bluetooth socket failures Pin
k505429-Feb-20 6:14
mvek505429-Feb-20 6:14 
GeneralRe: Bluetooth socket failures Pin
Vaclav_29-Feb-20 8:27
Vaclav_29-Feb-20 8:27 
GeneralRe: Bluetooth socket failures Pin
Richard MacCutchan29-Feb-20 21:19
mveRichard MacCutchan29-Feb-20 21:19 
GeneralRe: Bluetooth socket failures Pin
Vaclav_1-Mar-20 4:02
Vaclav_1-Mar-20 4:02 
GeneralRe: Bluetooth socket failures Pin
Vaclav_28-Feb-20 8:32
Vaclav_28-Feb-20 8:32 
QuestionRunning console apps on windows 7 Pin
Calin Negru23-Feb-20 20:07
Calin Negru23-Feb-20 20:07 
AnswerRe: Running console apps on windows 7 Pin
Victor Nijegorodov23-Feb-20 20:45
Victor Nijegorodov23-Feb-20 20:45 
GeneralRe: Running console apps on windows 7 Pin
Calin Negru23-Feb-20 21:22
Calin Negru23-Feb-20 21:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.