This commit is contained in:
TriForceX
2019-09-25 20:51:37 -03:00
commit 6203ff3e7c
11215 changed files with 428258 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
Fix compilation warnings in generated code
Patch taken from open bug report http://savannah.gnu.org/bugs/?40243
(project gengetopt seems to be dead; no hope for a new release soon)
Imported by Philippe Mariman.
This description by Thomas De Schampheleire.
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Index: gengetopt-2.22.6/src/skels/c_source.cc
===================================================================
--- gengetopt-2.22.6.orig/src/skels/c_source.cc 2012-11-07 20:58:29.000000000 +0100
+++ gengetopt-2.22.6/src/skels/c_source.cc 2014-11-20 12:05:02.597527761 +0100
@@ -2424,9 +2424,12 @@
stream << " FIX_UNUSED (field);";
stream << "\n";
stream << indent_str;
+ stream << " FIX_UNUSED (stop_char);";
+ stream << "\n";
+ stream << indent_str;
+ stream << " FIX_UNUSED (val);";
stream << "\n";
stream << indent_str;
- stream << " stop_char = 0;";
stream << "\n";
stream << indent_str;
stream << " found = 0;";
@@ -3981,6 +3984,12 @@
stream << "\n";
stream << indent_str;
}
+ else
+ {
+ stream << " FIX_UNUSED (check_required);";
+ stream << "\n";
+ stream << indent_str;
+ }
stream << "\n";
stream << indent_str;
indent = 2;
Index: gengetopt-2.22.6/src/skels/c_source.h_skel
===================================================================
--- gengetopt-2.22.6.orig/src/skels/c_source.h_skel 2012-11-02 18:43:24.000000000 +0100
+++ gengetopt-2.22.6/src/skels/c_source.h_skel 2014-11-20 12:05:22.501528424 +0100
@@ -767,8 +767,9 @@
char **string_field;
@ENDIF@
FIX_UNUSED (field);
+ FIX_UNUSED (stop_char);
+ FIX_UNUSED (val);
- stop_char = 0;
found = 0;
if (!multiple_option && prev_given && (*prev_given || (check_ambiguity && *field_given)))
@@ -1327,6 +1328,8 @@
{
error_occurred += @parser_name@_required2 (args_info, argv[0], additional_error);
}
+@ELSE@
+ FIX_UNUSED (check_required);
@ENDIF@
@parser_name@_release (&local_args_info);

View File

@@ -0,0 +1,2 @@
# Locally computed
sha256 30b05a88604d71ef2a42a2ef26cd26df242b41f5b011ad03083143a31d9b01f7 gengetopt-2.22.6.tar.gz

View File

@@ -0,0 +1,15 @@
################################################################################
#
# gengetopt
#
################################################################################
GENGETOPT_VERSION = 2.22.6
GENGETOPT_SITE = $(BR2_GNU_MIRROR)/gengetopt
GENGETOPT_LICENSE = GPL-3.0+
GENGETOPT_LICENSE_FILES = COPYING LICENSE
# Parallel build broken
GENGETOPT_MAKE = $(MAKE1)
$(eval $(host-autotools-package))