[MacPorts] #65128: xar @1.8.0.487.100.1: error: variable-sized object may not be initialized

MacPorts noreply at macports.org
Sat May 7 17:49:41 UTC 2022


#65128: xar @1.8.0.487.100.1: error: variable-sized object may not be initialized
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  Schamschula
  barracuda156           |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.2
Resolution:              |   Keywords:  powerpc, tiger, leopard,
      Port:  xar         |  snowleopard
-------------------------+-------------------------------------------------

Comment (by barracuda156):

 Replying to [comment:11 kencu]:
 > I can't get any version of gcc to compile this code with any c standard:
 >
 > {{{
 > typedef unsigned int uint;
 >
 > int main(void) {
 >   const uint keys_to_ignore_count = 1;
 >   char * keys_to_ignore[keys_to_ignore_count] = { "id" }; // ID is
 allowed ot mismatch
 >   return (0);
 > }
 > }}}

 So this is not even a PPC issue, but gcc issue in general?

-- 
Ticket URL: <https://trac.macports.org/ticket/65128#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list