Attachments are accessible only for community members.
Anonymous
Not applicable
Oct 18, 2013
06:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 18, 2013
06:54 PM
Hello everyone
I find a dangerous situation at GCC default.
Take a look my bundle, Debug.c line 9~16
Some function is nowhere but hex file has made.
This GCC default is
[ -Wimplicit-function-declaration ]
It not rise an error
I strongly recommand
[ -Werror-implicit-function-declaration ]
ByTheWay, How to do with "dummy" ??
I find a dangerous situation at GCC default.
Take a look my bundle, Debug.c line 9~16
Some function is nowhere but hex file has made.
This GCC default is
[ -Wimplicit-function-declaration ]
It not rise an error
I strongly recommand
[ -Werror-implicit-function-declaration ]
ByTheWay, How to do with "dummy" ??
3 Replies
Attachments are accessible only for community members.
Oct 19, 2013
03:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 19, 2013
03:34 AM
Anonymous
Not applicable
Oct 19, 2013
03:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 19, 2013
03:53 AM
No, No
If subroutines is not existed but hex code will generated.
The PSoC work with no these subroutines.
OK?
If subroutines is not existed but hex code will generated.
The PSoC work with no these subroutines.
OK?
Oct 20, 2013
10:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 20, 2013
10:40 AM
You don't get an error because 'ConstCopy' is not actually used. An implicit declaration is not really a compiler error because most times the compiler can infer the method definition properly from its usage.
You will get an error about the undefined method from the linker. But since the linker doesn't need the 'ConstCopy' method, it doesn't complain. And this is because you don't call the 'DebugCommand' method, so it gets removed by the linker.
If you call the debug method, you will get an error as you expect.