Author Topic: An unexpected warnning returned by codeblocks  (Read 214 times)

Offline wanggaoteng

  • Single posting newcomer
  • *
  • Posts: 6
An unexpected warnning returned by codeblocks
« on: October 13, 2017, 09:36:30 am »
Hi, when i using codeblocks to compile the following code, a warnning appeared, i have included string.h in the file, why dose codeblocks returns the warnning after compiling?

Code: [Select]
#include "stdio.h"
#include "string.h"

int main()
{
    char c[]="AAA";
    strlwr(c);
    printf("%s\n",c);
    return 0;
}

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5990
    • My Best Post
Re: An unexpected warnning returned by codeblocks
« Reply #1 on: October 13, 2017, 09:53:40 am »
Code::Blocks is returning the Compiler Warning from the Compiler!

Please read the rules  http://forums.codeblocks.org/index.php/topic,9996.0.html
And, then, learn about the compiler you are using; ask for compiler support elsewhere!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline wanggaoteng

  • Single posting newcomer
  • *
  • Posts: 6
Re: An unexpected warnning returned by codeblocks
« Reply #2 on: October 13, 2017, 12:03:51 pm »
Code::Blocks is returning the Compiler Warning from the Compiler!

Please read the rules  http://forums.codeblocks.org/index.php/topic,9996.0.html
And, then, learn about the compiler you are using; ask for compiler support elsewhere!

Tim S.
Thanks!