User forums > Help

Warning counted like error. Help to configure the enviroment

(1/2) > >>

yczo:
Hello, I'm starting to use codeblocks like c/c++ IDE, over linux.

The issue is the next. This sort of warning is counted like an error.

--- Quote ---/home/enigma/programas_C/SeriesDeNum_Partidos_1/main.cpp|12|warning: deprecated conversion from string constant to ‘char* [-Wwrite-strings]|
/home/enigma/programas_C/SeriesDeNum_Partidos_1/main.cpp|20warning: deprecated conversion from string constant to ‘char* [-Wwrite-strings]|
/home/enigma/programas_C/SeriesDeNum_Partidos_1/main.cpp|28|aviso: warning: deprecated conversion from string constant to ‘char* [-Wwrite-strings]|
||=== Build finished: 3 errors, 0 warnings (0 minutes, 0 seconds) ===|

--- End quote ---

Please, could anyone help me to configure the editor to count like warning instead?

Thanks in advance.

stahta01:
Code::Blocks verion or SVN number?

Tim S.

yczo:

codeblocks-12.11 over gcc-4.6.3

salutes!

Jenna:
Please post the exact message from the "Build log" and not from the "Build message"-pane.
And use code-tags (look at the hash [ # ] in the tools-list) to enhance readability.

yczo:

--- Quote ----------------- Build: Debug in SeriesDeNum_Partidos_1 (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions  -g  -g    -c /home/yczo/programas_C/SeriesDeNum_Partidos_1/main.cpp -o obj/Debug/main.o

/home/yczo/programas_C/SeriesDeNum_Partidos_1/main.cpp: In function ‘int main()’:
/home/yczo/programas_C/SeriesDeNum_Partidos_1/main.cpp:12:41: warning: deprecated conversion from string constant to ‘char* [-Wwrite-strings]
/home/yczo/programas_C/SeriesDeNum_Partidos_1/main.cpp:20:48: warning: deprecated conversion from string constant to ‘char* [-Wwrite-strings]
/home/yczo/programas_C/SeriesDeNum_Partidos_1/main.cpp:28:41: warning: deprecated conversion from string constant to ‘char* [-Wwrite-strings]
g++  -o bin/Debug/SeriesDeNum_Partidos_1 obj/Debug/main.o obj/Debug/tabula.o   -lcurses  
Output size is 10,60 KB
Process terminated with status 0 (0 minutes, 0 seconds)
3 errors, 0 warnings (0 minutes, 0 seconds)

--- End quote ---

Note: The program runs even with the errors

Navigation

[0] Message Index

[#] Next page

Go to full version