This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix -Werror= handling for Joined warnings, add a few missing Warning keywords (PRs c/48088, c/68657)


I think marking stuff with Warning as appropriate qualifies as obvious.

On 12/04/2015 05:37 PM, Jakub Jelinek wrote:
+	  /* If the switch takes an integer, convert it.  */
+	  if (arg && cl_options[opt_index].cl_uinteger)
+	    {
+	      value = integral_argument (arg);
+	      if (value == -1)
+		return;
+	    }

So does this issue an error message anywhere or just silently drop the option on the floor if the argument is invalid?

+	  /* If the switch takes an enumerated argument, convert it.  */
+	  if (arg && (cl_options[opt_index].var_type == CLVC_ENUM))

Unnecessary parens.


Bernd


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]