* windres.c (usage): Report -r option.
[deliverable/binutils-gdb.git] / binutils / windres.c
index 15483530b3f9b53a1ad975ca2ff3419b06fb9a0f..224a744077e4cf8242e6ec0971f1713b9d3c1e1d 100644 (file)
@@ -443,11 +443,9 @@ define_resource (resources, cids, ids, dupok)
 
   re->u.res = ((struct res_resource *)
               res_alloc (sizeof (struct res_resource)));
+  memset (re->u.res, 0, sizeof (struct res_resource));
 
   re->u.res->type = RES_TYPE_UNINITIALIZED;
-  memset (&re->u.res->res_info, 0, sizeof (struct res_res_info));
-  memset (&re->u.res->coff_info, 0, sizeof (struct res_coff_info));
-
   return re->u.res;
 }
 
@@ -722,6 +720,7 @@ usage (stream, status)
      --yydebug                 Turn on parser debugging\n"));
 #endif
   fprintf (stream, _("\
+  -r                           Ignored for compatibility with rc\n\
   -h --help                    Print this help message\n\
   -V --version                 Print version information\n"));
   fprintf (stream, _("\
@@ -817,7 +816,7 @@ main (argc, argv)
   language = 0x409;   /* LANG_ENGLISH, SUBLANG_ENGLISH_US.  */
   use_temp_file = 0;
 
-  while ((c = getopt_long (argc, argv, "i:o:I:O:F:D:hHvV", long_options,
+  while ((c = getopt_long (argc, argv, "i:o:I:O:F:D:rhHvV", long_options,
                           (int *) 0)) != EOF)
     {
       switch (c)
@@ -866,6 +865,10 @@ main (argc, argv)
            }
          break;
 
+       case 'r':
+         /* Ignored for compatibility with rc */
+         break;
+
        case 'v':
          verbose ++;
          break;
This page took 0.023349 seconds and 4 git commands to generate.