🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Alex Zatsman Thu, 07 Jan 1993 21:03
Unending Warnings about '-Wid-clash-..'
#1606
Author: Alex Zatsman
Date: Thu, 07 Jan 1993 21:03
31 lines
1051 bytes
Calling "gcc -Wid-clash-LEN <file name>" sends cc1 into infinite loop
in which it prints 

	cc1: error: Invalid option `-Wid-clash-LEN'

on each iteration. The bad code is in toplev.c (line 2848):

		  while (*endp)
		    {
		      if (*endp >= '0' && *endp <= '9')
			endp++;
		      else
			error ("Invalid option `%s'", argv[i]);
		    }

A less verbose code could look like this:

		  while (*endp)
		    {
		      if (*endp >= '0' && *endp <= '9')
			endp++;
		      else
			{	
			   error ("Invalid option `%s'", argv[i]);
			   break;
			}
		    }


Alex Zatsman
Analog Devices, Inc.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads