title: Parameter Names (without types) in Function Declaration
body: <p>So, I'm working on an assignment and my teacher didn't quite explain functions very well. I'll save some time and show the main segment where the error occurs:</p>
  
  <pre><code> #include &lt;stdio.h&gt;
   6  int main(void)
   7  {
   8   double Depth;
   9   double celsius_at_depth(Depth);
  10  {
  11   10*(Depth)+20;
  12  }
  </code></pre>
  
  <p>And the error:</p>
  
  <pre><code>GHP#4.c:9:2: warning: parameter names (without types) 
  in function declaration [enabled by default]
  double celsius_at_depth(Depth);
  ^
  </code></pre>
  
  <p>Sorry about formatting, I wanted it to be easier to see. isn't double supposed to be the parameter type for the function celsius_at_depth?</p>
  
  <p>EDIT: I've looked up the error on the site, but I didn't quite see it in the same formatting as my code, so I felt it best to post anew</p>