mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 16:07:42 +00:00
kconfig: only warn about long help lines, not other types of lines
We have some pretty long depends / default y|n lines in BR, which it shouldn't complain about.
This commit is contained in:
parent
fcb9d45a07
commit
50548330b4
@ -815,7 +815,8 @@ void new_string(void)
|
|||||||
void append_string(const char *str, int size)
|
void append_string(const char *str, int size)
|
||||||
{
|
{
|
||||||
int new_size = text_size + size + 1;
|
int new_size = text_size + size + 1;
|
||||||
if (size > 70) {
|
|
||||||
|
if ((YY_START == 2 /* HELP */) && (size > 70)) {
|
||||||
fprintf (stderr, "%s:%d warning: Overlong line\n",
|
fprintf (stderr, "%s:%d warning: Overlong line\n",
|
||||||
current_file->name, current_file->lineno);
|
current_file->name, current_file->lineno);
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,8 @@ void new_string(void)
|
|||||||
void append_string(const char *str, int size)
|
void append_string(const char *str, int size)
|
||||||
{
|
{
|
||||||
int new_size = text_size + size + 1;
|
int new_size = text_size + size + 1;
|
||||||
if (size > 70) {
|
|
||||||
|
if ((YY_START == 2 /* HELP */) && (size > 70)) {
|
||||||
fprintf (stderr, "%s:%d warning: Overlong line\n",
|
fprintf (stderr, "%s:%d warning: Overlong line\n",
|
||||||
current_file->name, current_file->lineno);
|
current_file->name, current_file->lineno);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user