git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3416
4a8a32a2-be11-0410-ad9d-
d568d2c75423
/* only if the main function exists */
if (!(mainf = findSymWithLevel (SymbolTab, mainf)))
{
/* only if the main function exists */
if (!(mainf = findSymWithLevel (SymbolTab, mainf)))
{
+ struct options *op = &options;
+ if (!(op->cc_only || noAssemble))
// werror (E_NO_MAIN);
fprintf(stderr,"WARNING: function 'main' undefined\n");
return;
// werror (E_NO_MAIN);
fprintf(stderr,"WARNING: function 'main' undefined\n");
return;
if (!IFFUNC_HASBODY(mainf->type))
{
/* if ! compile only then main function should be present */
if (!IFFUNC_HASBODY(mainf->type))
{
/* if ! compile only then main function should be present */
+ if (!(options.cc_only || noAssemble))
// werror (E_NO_MAIN);
fprintf(stderr,"WARNING: function 'main' undefined\n");
return;
// werror (E_NO_MAIN);
fprintf(stderr,"WARNING: function 'main' undefined\n");
return;