kdlucas / byte-unixbench

Automatically exported from code.google.com/p/byte-unixbench
GNU General Public License v2.0
1.27k stars 323 forks source link

title[18] -> title[22] #78

Closed Rtoax closed 1 year ago

Rtoax commented 2 years ago

compile warning:

src/whets.c:797:20: warning: argument 1 of type ‘char[18]’ with mismatched bound [-Warray-parameter=]
  797 |     void pout(char title[18], float ops, int type, SPDP checknum,
      |               ~~~~~^~~~~~~~~
src/whets.c:315:17: note: previously declared as ‘char[22]’
  315 |  void pout(char title[22], float ops, int type, SPDP checknum,
      |            ~~~~~^~~~~~~~~

gcc version: gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)

gstrauss commented 1 year ago

Thank you.

gstrauss commented 1 year ago

FYI: I pushed a subsequent commit to change title[22] -> title[18] to match the length of existing strings passed to the function.