public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Bruce Butler" <BButler@ABFloyd.com>
To: <gcc-help@gcc.gnu.org>
Subject: GNU gcc 3.4.6 Compile Error on Solaris 10
Date: Wed, 06 Jun 2007 15:50:00 -0000	[thread overview]
Message-ID: <47579AF2139B5F428A8B5BCAA8872C7C587BAD@exchq1.induscorp.com> (raw)

Compiling using gcc 3.4.6 on Solaris 10 with the following command line options:

 

-ansi -Wall -g -DAUX -D_SYSV_SOURCE -D_BSD_SOURCE -D_AUX_SOURCE -DNOSTDHDRS -DSUN 

 

I am getting the following error: "'va_start' used in function with fixed args"

 

Can anyone help me with this?

 

Example:

 

void do_remarks_process( id, sec_str, va_alist )
 int id;
 char *sec_str;
 char *va_alist;
{
 static char label_str[] = {"LABEL/"};
 static char labelid_str[] = {"LABELID/"};
 char *ptr = label_str;
 va_list set_args;

   if ( id )   ptr = labelid_str;

   if ( ok_to_process_msg  &&  ok_to_process_uic  &&  (!ok_to_process_rmk)  &&
        (!secur_sclass_flag) )
      if ( strncmp(message_record[l_indx+1]+HEAD_LEN, ptr, strlen(ptr)) == 0 )
         new_error("LABEL", 40);

   while ( strncmp(message_record[l_indx+1]+HEAD_LEN, ptr, strlen(ptr)) == 0 )
      {
       l_indx++;
       va_start(set_args, va_alist);     ß/* #######  causes error */
       label_set_edits(id,sec_str, set_args);
       va_end( set_args );
      }
}

 

regards,

Bruce



______________________________________________________________________
This email was scanned by MessageLabs
_____________________________________________________________________

             reply	other threads:[~2007-06-06 15:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-06 15:50 Bruce Butler [this message]
2007-06-06 17:03 ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47579AF2139B5F428A8B5BCAA8872C7C587BAD@exchq1.induscorp.com \
    --to=bbutler@abfloyd.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).