Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 828550
Collapse All | Expand All

(-)a/eiffel.c (-1 / +1 lines)
Lines 807-813 Link Here
807
807
808
static boolean parseType (tokenInfo *const token);
808
static boolean parseType (tokenInfo *const token);
809
809
810
static void parseGeneric (tokenInfo *const token, boolean declaration __unused__)
810
static void parseGeneric (tokenInfo *const token, boolean declaration __arduino_unused__)
811
{
811
{
812
	unsigned int depth = 0;
812
	unsigned int depth = 0;
813
#ifdef TYPE_REFERENCE_TOOL
813
#ifdef TYPE_REFERENCE_TOOL
(-)a/general.h (-1 / +1 lines)
Lines 57-63 Link Here
57
 *  to prevent warnings about unused variables.
57
 *  to prevent warnings about unused variables.
58
 */
58
 */
59
#if (__GNUC__ > 2  ||  (__GNUC__ == 2  &&  __GNUC_MINOR__ >= 7)) && !defined (__GNUG__)
59
#if (__GNUC__ > 2  ||  (__GNUC__ == 2  &&  __GNUC_MINOR__ >= 7)) && !defined (__GNUG__)
60
# define __unused__  __attribute__((unused))
60
# define __arduino_unused__   __attribute__ ((__unused__))
61
# define __printf__(s,f)  __attribute__((format (printf, s, f)))
61
# define __printf__(s,f)  __attribute__((format (printf, s, f)))
62
#else
62
#else
63
# define __unused__
63
# define __unused__
(-)a/lregex.c (-15 / +15 lines)
Lines 538-548 Link Here
538
#endif  /* HAVE_REGEX */
538
#endif  /* HAVE_REGEX */
539
539
540
extern void addTagRegex (
540
extern void addTagRegex (
541
		const langType language __unused__,
541
		const langType language __arduino_unused__,
542
		const char* const regex __unused__,
542
		const char* const regex __arduino_unused__,
543
		const char* const name __unused__,
543
		const char* const name __arduino_unused__,
544
		const char* const kinds __unused__,
544
		const char* const kinds __arduino_unused__,
545
		const char* const flags __unused__)
545
		const char* const flags __arduino_unused__)
546
{
546
{
547
#ifdef HAVE_REGEX
547
#ifdef HAVE_REGEX
548
	Assert (regex != NULL);
548
	Assert (regex != NULL);
Lines 564-573 Link Here
564
}
564
}
565
565
566
extern void addCallbackRegex (
566
extern void addCallbackRegex (
567
		const langType language __unused__,
567
		const langType language __arduino_unused__,
568
		const char* const regex __unused__,
568
		const char* const regex __arduino_unused__,
569
		const char* const flags __unused__,
569
		const char* const flags __arduino_unused__,
570
		const regexCallback callback __unused__)
570
		const regexCallback callback __arduino_unused__)
571
{
571
{
572
#ifdef HAVE_REGEX
572
#ifdef HAVE_REGEX
573
	Assert (regex != NULL);
573
	Assert (regex != NULL);
Lines 581-587 Link Here
581
}
581
}
582
582
583
extern void addLanguageRegex (
583
extern void addLanguageRegex (
584
		const langType language __unused__, const char* const regex __unused__)
584
		const langType language __arduino_unused__, const char* const regex __arduino_unused__)
585
{
585
{
586
#ifdef HAVE_REGEX
586
#ifdef HAVE_REGEX
587
	if (! regexBroken)
587
	if (! regexBroken)
Lines 602-608 Link Here
602
*/
602
*/
603
603
604
extern boolean processRegexOption (const char *const option,
604
extern boolean processRegexOption (const char *const option,
605
								   const char *const parameter __unused__)
605
								   const char *const parameter __arduino_unused__)
606
{
606
{
607
	boolean handled = FALSE;
607
	boolean handled = FALSE;
608
	const char* const dash = strchr (option, '-');
608
	const char* const dash = strchr (option, '-');
Lines 624-630 Link Here
624
	return handled;
624
	return handled;
625
}
625
}
626
626
627
extern void disableRegexKinds (const langType language __unused__)
627
extern void disableRegexKinds (const langType language __arduino_unused__)
628
{
628
{
629
#ifdef HAVE_REGEX
629
#ifdef HAVE_REGEX
630
	if (language <= SetUpper  &&  Sets [language].count > 0)
630
	if (language <= SetUpper  &&  Sets [language].count > 0)
Lines 639-646 Link Here
639
}
639
}
640
640
641
extern boolean enableRegexKind (
641
extern boolean enableRegexKind (
642
		const langType language __unused__,
642
		const langType language __arduino_unused__,
643
		const int kind __unused__, const boolean mode __unused__)
643
		const int kind __arduino_unused__, const boolean mode __arduino_unused__)
644
{
644
{
645
	boolean result = FALSE;
645
	boolean result = FALSE;
646
#ifdef HAVE_REGEX
646
#ifdef HAVE_REGEX
Lines 660-666 Link Here
660
	return result;
660
	return result;
661
}
661
}
662
662
663
extern void printRegexKinds (const langType language __unused__, boolean indent __unused__)
663
extern void printRegexKinds (const langType language __arduino_unused__, boolean indent __arduino_unused__)
664
{
664
{
665
#ifdef HAVE_REGEX
665
#ifdef HAVE_REGEX
666
	if (language <= SetUpper  &&  Sets [language].count > 0)
666
	if (language <= SetUpper  &&  Sets [language].count > 0)
(-)a/lua.c (-1 / +1 lines)
Lines 37-43 Link Here
37
*/
37
*/
38
38
39
/* for debugging purposes */
39
/* for debugging purposes */
40
static void __unused__ print_string (char *p, char *q)
40
static void __arduino_unused__ print_string (char *p, char *q)
41
{
41
{
42
	for ( ; p != q; p++)
42
	for ( ; p != q; p++)
43
		fprintf (errout, "%c", *p);
43
		fprintf (errout, "%c", *p);
(-)a/main.c (-1 / +1 lines)
Lines 522-528 Link Here
522
 *		Start up code
522
 *		Start up code
523
 */
523
 */
524
524
525
extern int main (int __unused__ argc, char **argv)
525
extern int main (int __arduino_unused__ argc, char **argv)
526
{
526
{
527
	cookedArgs *args;
527
	cookedArgs *args;
528
#ifdef VMS
528
#ifdef VMS
(-)a/options.c (-12 / +12 lines)
Lines 731-737 Link Here
731
}
731
}
732
732
733
static void processExcludeOption (
733
static void processExcludeOption (
734
		const char *const option __unused__, const char *const parameter)
734
		const char *const option __arduino_unused__, const char *const parameter)
735
{
735
{
736
	const char *const fileName = parameter + 1;
736
	const char *const fileName = parameter + 1;
737
	if (parameter [0] == '\0')
737
	if (parameter [0] == '\0')
Lines 869-875 Link Here
869
}
869
}
870
870
871
static void processFilterTerminatorOption (
871
static void processFilterTerminatorOption (
872
		const char *const option __unused__, const char *const parameter)
872
		const char *const option __arduino_unused__, const char *const parameter)
873
{
873
{
874
	freeString (&Option.filterTerminator);
874
	freeString (&Option.filterTerminator);
875
	Option.filterTerminator = stringCopy (parameter);
875
	Option.filterTerminator = stringCopy (parameter);
Lines 932-939 Link Here
932
}
932
}
933
933
934
static void processHelpOption (
934
static void processHelpOption (
935
		const char *const option __unused__,
935
		const char *const option __arduino_unused__,
936
		const char *const parameter __unused__)
936
		const char *const parameter __arduino_unused__)
937
{
937
{
938
	printProgramIdentification ();
938
	printProgramIdentification ();
939
	putchar ('\n');
939
	putchar ('\n');
Lines 1141-1148 Link Here
1141
}
1141
}
1142
1142
1143
static void processLicenseOption (
1143
static void processLicenseOption (
1144
		const char *const option __unused__,
1144
		const char *const option __arduino_unused__,
1145
		const char *const parameter __unused__)
1145
		const char *const parameter __arduino_unused__)
1146
{
1146
{
1147
	printProgramIdentification ();
1147
	printProgramIdentification ();
1148
	puts ("");
1148
	puts ("");
Lines 1168-1175 Link Here
1168
}
1168
}
1169
1169
1170
static void processListMapsOption (
1170
static void processListMapsOption (
1171
		const char *const __unused__ option,
1171
		const char *const __arduino_unused__ option,
1172
		const char *const __unused__ parameter)
1172
		const char *const __arduino_unused__ parameter)
1173
{
1173
{
1174
	if (parameter [0] == '\0' || strcasecmp (parameter, "all") == 0)
1174
	if (parameter [0] == '\0' || strcasecmp (parameter, "all") == 0)
1175
	    printLanguageMaps (LANG_AUTO);
1175
	    printLanguageMaps (LANG_AUTO);
Lines 1185-1192 Link Here
1185
}
1185
}
1186
1186
1187
static void processListLanguagesOption (
1187
static void processListLanguagesOption (
1188
		const char *const option __unused__,
1188
		const char *const option __arduino_unused__,
1189
		const char *const parameter __unused__)
1189
		const char *const parameter __arduino_unused__)
1190
{
1190
{
1191
	printLanguageList ();
1191
	printLanguageList ();
1192
	exit (0);
1192
	exit (0);
Lines 1360-1367 Link Here
1360
}
1360
}
1361
1361
1362
static void processVersionOption (
1362
static void processVersionOption (
1363
		const char *const option __unused__,
1363
		const char *const option __arduino_unused__,
1364
		const char *const parameter __unused__)
1364
		const char *const parameter __arduino_unused__)
1365
{
1365
{
1366
	printProgramIdentification ();
1366
	printProgramIdentification ();
1367
	exit (0);
1367
	exit (0);
(-)a/parse.c (-1 / +1 lines)
Lines 376-382 Link Here
376
*/
376
*/
377
377
378
extern void processLanguageDefineOption (
378
extern void processLanguageDefineOption (
379
		const char *const option, const char *const parameter __unused__)
379
		const char *const option, const char *const parameter __arduino_unused__)
380
{
380
{
381
#ifdef HAVE_REGEX
381
#ifdef HAVE_REGEX
382
	if (parameter [0] == '\0')
382
	if (parameter [0] == '\0')
(-)a/python.c (-1 / +1 lines)
Lines 135-141 Link Here
135
 * extract all relevant information and create a tag.
135
 * extract all relevant information and create a tag.
136
 */
136
 */
137
static void makeFunctionTag (vString *const function,
137
static void makeFunctionTag (vString *const function,
138
	vString *const parent, int is_class_parent, const char *arglist __unused__)
138
	vString *const parent, int is_class_parent, const char *arglist __arduino_unused__)
139
{
139
{
140
	tagEntryInfo tag;
140
	tagEntryInfo tag;
141
	initTagEntry (&tag, vStringValue (function));
141
	initTagEntry (&tag, vStringValue (function));

Return to bug 828550