bug-gperf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61984] static in_word_set


From: anonymous
Subject: [bug #61984] static in_word_set
Date: Wed, 2 Feb 2022 21:13:50 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?61984>

                 Summary: static in_word_set
                 Project: gperf
            Submitted by: None
            Submitted on: Thu 03 Feb 2022 02:13:49 AM UTC
                Category: Generated code
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Compiler rightly complains about _-Wmissing-prototypes_ version 3.1-. _hash_
is _static_, I think _in_word_set_ should be, too.


in_word_set (register const char *str, register size_t len)
^
a.gperf.c:59:7: note: declare 'static' if the function is not intended to be
      used outside of this translation unit
const struct month *
      ^
      static 


It should be _static const month *_.





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61984>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]