title: warning: label alone on a line without a colon might be in error
body: <p>I've got this simple assembly program <code>asm1.asm</code>, but I get an error when trying to compile it. This is the code</p>
  
  <pre><code>;--- constant variables ---
  SECTION .data
  
      msg: db "Hello World!", 10, 0; 10: carriage return, 0: NULL end of msg (stop)
  
  ;--- dynamic variables ---
  ; SECTION .bss
  
  ;--- assembler code ---
  SECTION .text
  
  extern _printf
  global _main                    ;
  _main:                          ; void main() {
      push ebp ;basepointer       ;   /* creation of the stack */
      mov ebp, esp ;stackpointer  ;
  
      push msg                    ;   /* pushing memory address */
      call _printf                    ;   /* call printf */
  
      mov esp, ebp                ;   /* function body */
      pop ebp                     ;
      return;                     ; }
  </code></pre>
  
  <p>I get this error </p>
  
  <pre><code>C:\Users\David\Desktop&gt;nasm -f elf asm1.asm
  asm1.asm:23: warning: label alone on a line without a colon might be in error
  </code></pre>
  
  <p>I'm new to assembly so I guess it's just something minor but could someone please tell me what is causing the warning?</p>