linuxplc.c

T

Thread Starter

Todd A. Lyons

When I compile linuxplc.c, I get a warning about "implicit declaration of strncmp()". If you change the "#include <strings.h>" to "#include <string.h>", the warning message goes away. However, I could not get the same warning for getline in conffile_lib.c to go away. I'm still learning.

Placement of two sets of brackets in conffile_lib.c got rid of the warnings for the "ambiguous else" (reference lines 190 and 351)

Sorry if I'm anal retentive, but I hate warnings.
--
Blue skies... Cannonball http://www.mrball.net
* One GUI to rule them all, One GUI to find them *
*One GUI to bring them all, and with the blue screen bind them*
* In the land of Redmond, where the shadows lie. *

_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
 
Todd A. Lyons:
> However, I could not get the same warning for getline in conffile_lib.c
> to go away. I'm still learning.

Reading /usr/include/stdio.h, it'd seem that getline() is a GNU-specific
function.

> Placement of two sets of brackets in conffile_lib.c got rid of the
> warnings for the "ambiguous else" (reference lines 190 and 351)

Done.

> Sorry if I'm anal retentive, but I hate warnings.

No, it's all right, most warnings do actually point out real or potential
problems.


Jiri
--
Jiri Baum <[email protected]>
Windows is not popular. Windows is *widespread*. Linux is popular.

_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
 
Top